Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001491/0.001495, allocations: 186.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001804/0.001803, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004023/0.0004024, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1024, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.0117/0.1141, allocations: 6.6 MB / 381.2 MB, free: 8.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006693/0.1209, allocations: 2.617 MB / 383.9 MB, free: 6.07 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001143/0.1221, allocations: 27.88 kB / 383.9 MB, free: 6.043 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.124, allocations: 441.8 kB / 384.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001929/0.1259, allocations: 462.6 kB / 384.8 MB, free: 5.156 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.127, allocations: 255.6 kB / 385 MB, free: 4.906 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002838/0.1299, allocations: 1.042 MB / 386.1 MB, free: 3.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.131, allocations: 448.4 kB / 386.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001221/0.1323, allocations: 426.2 kB / 386.9 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.1335, allocations: 473.6 kB / 387.4 MB, free: 2.523 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002344/0.1338, allocations: 56 kB / 387.4 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005055/0.1343, allocations: 103.9 kB / 387.5 MB, free: 2.367 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.1346, allocations: 179.2 kB / 387.7 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004024/0.135, allocations: 257 kB / 388 MB, free: 1.934 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.1375, allocations: 1.281 MB / 389.2 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1375, allocations: 0 / 389.2 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1376, allocations: 0 / 389.2 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.929e-05/0.1376, allocations: 4 kB / 389.2 MB, free: 0.6445 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.2999/0.4375, allocations: 1.292 MB / 390.5 MB, free: 11.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.4376, allocations: 9.156 kB / 390.5 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003456/0.438, allocations: 152.8 kB / 390.7 MB, free: 11.73 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007272/0.4387, allocations: 173.4 kB / 390.9 MB, free: 11.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.4408, allocations: 0.7596 MB / 391.6 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.4409, allocations: 72 kB / 391.7 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002296/0.4411, allocations: 103.5 kB / 391.8 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.4437, allocations: 0.94 MB / 392.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.827e-05/0.4438, allocations: 3.094 kB / 392.7 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001199/0.444, allocations: 39.81 kB / 392.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.227e-05/0.444, allocations: 24.09 kB / 392.8 MB, free: 11.19 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.4461, allocations: 0.6439 MB / 393.4 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008102/0.4542, allocations: 4.081 MB / 397.5 MB, free: 9.289 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.456, allocations: 454.9 kB / 398 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-05/0.4561, allocations: 5.969 kB / 398 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.4561, allocations: 42.97 kB / 398 MB, free: 9.215 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 6.011e-06/0.4561, allocations: 2.859 kB / 398 MB, free: 9.215 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.003772/0.4599, allocations: 1.359 MB / 399.4 MB, free: 8.609 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.46, allocations: 108.7 kB / 399.5 MB, free: 8.484 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/0.4617, allocations: 0.8335 MB / 400.3 MB, free: 8.328 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.565e-05/0.4618, allocations: 34.89 kB / 400.4 MB, free: 8.297 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000417/0.4622, allocations: 0.5946 MB / 400.9 MB, free: 7.941 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.4623, allocations: 149.5 kB / 401.1 MB, free: 7.852 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.373e-05/0.4624, allocations: 15.16 kB / 401.1 MB, free: 7.852 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.237e-05/0.4625, allocations: 338 kB / 401.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005871/0.4631, allocations: 173 kB / 401.6 MB, free: 7.531 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007247/0.4638, allocations: 494.7 kB / 402.1 MB, free: 7.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006739/0.4645, allocations: 247.4 kB / 402.3 MB, free: 7.113 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.085e-06/0.4646, allocations: 3.781 kB / 402.3 MB, free: 7.113 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001879/0.4664, allocations: 0.6822 MB / 403 MB, free: 7.039 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001144/0.4676, allocations: 4.09 MB / 407.1 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.532e-05/0.4677, allocations: 11.41 kB / 407.1 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.4679, allocations: 38.83 kB / 407.2 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.4691, allocations: 172.7 kB / 407.3 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.4703, allocations: 1.293 MB / 408.6 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.4713, allocations: 41.25 kB / 408.7 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/0.4714, allocations: 37.45 kB / 408.7 MB, free: 1.484 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.4714, allocations: 3.875 kB / 408.7 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001664/0.4731, allocations: 0.6182 MB / 409.3 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.4731, allocations: 12.55 kB / 409.3 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.4733, allocations: 32.55 kB / 409.4 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.4743, allocations: 167.8 kB / 409.5 MB, free: 1.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009841/0.4753, allocations: 1.302 MB / 410.8 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005378/0.4759, allocations: 30.75 kB / 410.9 MB, free: 176 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.132e-05/0.476, allocations: 36.28 kB / 410.9 MB, free: 176 kB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007875/0.4768, allocations: 342.5 kB / 411.2 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002917/0.4771, allocations: 94.8 kB / 411.3 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.4785, allocations: 444.9 kB / 411.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.4785, allocations: 5.375 kB / 411.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.4785, allocations: 1.469 kB / 411.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.4785, allocations: 1.922 kB / 411.8 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.4821, allocations: 1.356 MB / 413.1 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.4821, allocations: 6.172 kB / 413.1 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007223/0.4829, allocations: 80.69 kB / 413.2 MB, free: 15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001695/0.483, allocations: 23.81 kB / 413.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.265e-05/0.4831, allocations: 16.05 kB / 413.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.4844, allocations: 1.276 MB / 414.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4845, allocations: 2.594 kB / 414.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.4865, allocations: 0.8045 MB / 415.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005065/0.4871, allocations: 192.5 kB / 415.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001641/0.4873, allocations: 16.12 kB / 415.5 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006383/0.4879, allocations: 22.02 kB / 415.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.488, allocations: 36.78 kB / 415.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.4881, allocations: 17.08 kB / 415.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001224/0.4893, allocations: 0.5549 MB / 416.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4893, allocations: 0 / 416.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002147/0.4915, allocations: 341.2 kB / 416.5 MB, free: 12.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002642/0.4942, allocations: 1.873 MB / 418.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00263/0.4969, allocations: 0.9635 MB / 419.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.4969, allocations: 1.281 kB / 419.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.4976, allocations: 295 kB / 419.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.4995, allocations: 222.2 kB / 419.8 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01739/0.5169, allocations: 12.41 MB / 432.3 MB, free: 15.78 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008978/0.5178, allocations: 1.04 MB / 433.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008779/0.5187, allocations: 403.3 kB / 433.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of SimCode: time 1.443e-06/0.5187, allocations: 0 / 433.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.905/3.424, allocations: 20.68 MB / 454.4 MB, free: 9.641 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat