Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",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.001603/0.001603, allocations: 181.2 kB / 13.66 MB, free: 1.664 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.144/2.144, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001094/0.001094, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2819/0.2819, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.518e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1178, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5488/0.6667, allocations: 123 MB / 0.593 GB, free: 12.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.667, allocations: 75.62 kB / 0.5931 GB, free: 12.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2828/0.9498, allocations: 61.94 MB / 0.6535 GB, free: 6.785 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.9499, allocations: 0 / 0.6535 GB, free: 6.785 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000424/0.9503, allocations: 83.88 kB / 0.6536 GB, free: 6.703 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01191/0.9623, allocations: 2.91 MB / 0.6565 GB, free: 3.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.9623, allocations: 11.98 kB / 0.6565 GB, free: 3.719 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001833/0.9642, allocations: 413 kB / 0.6569 GB, free: 3.305 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002514/0.9667, allocations: 408.2 kB / 0.6573 GB, free: 2.902 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008761/0.9755, allocations: 2.145 MB / 0.6594 GB, free: 0.7031 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000439/0.976, allocations: 213.7 kB / 0.6596 GB, free: 0.4922 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.9776, allocations: 291.8 kB / 0.6598 GB, free: 212 kB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0136/0.9912, allocations: 3.628 MB / 0.6634 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000161/0.9915, allocations: 7.906 kB / 0.6634 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009298/0.9924, allocations: 124 kB / 0.6635 GB, free: 12.3 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002421/0.9927, allocations: 133.5 kB / 0.6636 GB, free: 12.17 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/1.004, allocations: 2.931 MB / 0.6665 GB, free: 9.23 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03918/1.043, allocations: 11.63 MB / 0.6778 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007315/1.05, allocations: 2.199 MB / 0.68 GB, free: 10.99 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003278/1.054, allocations: 1.075 MB / 0.681 GB, free: 9.914 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006672/1.054, allocations: 227.4 kB / 0.6813 GB, free: 9.652 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.128e-05/1.054, allocations: 43.88 kB / 0.6813 GB, free: 9.602 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.769e-06/1.054, allocations: 0 / 0.6813 GB, free: 9.602 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.02401/1.078, allocations: 6.065 MB / 0.6872 GB, free: 3.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.905e-05/1.079, allocations: 64.72 kB / 0.6873 GB, free: 3.406 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005304/1.084, allocations: 1.694 MB / 0.6889 GB, free: 1.668 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005005/1.084, allocations: 53.7 kB / 0.689 GB, free: 1.609 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/1.086, allocations: 1.272 MB / 0.6902 GB, free: 332 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/1.087, allocations: 0.5276 MB / 0.6908 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002294/1.087, allocations: 36 kB / 0.6908 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002713/1.088, allocations: 382.8 kB / 0.6912 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003868/1.091, allocations: 0.8708 MB / 0.692 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003455/1.095, allocations: 1.315 MB / 0.6933 GB, free: 13 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003274/1.098, allocations: 1.091 MB / 0.6944 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.091e-05/1.098, allocations: 4 kB / 0.6944 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.009006/1.107, allocations: 2.764 MB / 0.6971 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/1.108, allocations: 16 kB / 0.6971 GB, free: 9.113 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-05/1.108, allocations: 12 kB / 0.6971 GB, free: 9.102 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/1.11, allocations: 450.1 kB / 0.6975 GB, free: 8.652 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004021/1.114, allocations: 455.3 kB / 0.6979 GB, free: 8.207 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/1.126, allocations: 7.042 MB / 0.7048 GB, free: 0.7617 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00308/1.13, allocations: 123.8 kB / 0.7049 GB, free: 0.6406 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004219/1.13, allocations: 79.94 kB / 0.705 GB, free: 0.5625 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000614/1.131, allocations: 211.8 kB / 0.7052 GB, free: 360 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007487/1.131, allocations: 205.5 kB / 0.7054 GB, free: 152 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3588/1.49, allocations: 2.949 MB / 0.7083 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.285e-05/1.49, allocations: 23.64 kB / 0.7083 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/1.49, allocations: 7.469 kB / 0.7083 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.816e-05/1.49, allocations: 7.453 kB / 0.7083 GB, free: 127.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.511, allocations: 6.121 MB / 0.7143 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.083e-05/1.511, allocations: 3.938 kB / 0.7143 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/1.514, allocations: 240.3 kB / 0.7145 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004709/1.519, allocations: 0.8266 MB / 0.7153 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004495/1.519, allocations: 44.05 kB / 0.7154 GB, free: 126.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02231/1.541, allocations: 10.19 MB / 0.7253 GB, free: 123 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.541, allocations: 6.281 kB / 0.7253 GB, free: 123 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.553, allocations: 4.388 MB / 0.7296 GB, free: 122.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/1.555, allocations: 0.4922 MB / 0.7301 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008533/1.556, allocations: 39.27 kB / 0.7301 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002665/1.559, allocations: 94.55 kB / 0.7302 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006282/1.559, allocations: 124.6 kB / 0.7304 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000203/1.56, allocations: 49.56 kB / 0.7304 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003476/1.563, allocations: 1.294 MB / 0.7317 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.62e-07/1.563, allocations: 0 / 0.7317 GB, free: 122.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003802/1.567, allocations: 0.6318 MB / 0.7323 GB, free: 122.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01244/1.58, allocations: 5.942 MB / 0.7381 GB, free: 120.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006661/1.586, allocations: 2.607 MB / 0.7406 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/1.586, allocations: 0 / 0.7406 GB, free: 119.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004196/1.59, allocations: 1.646 MB / 0.7422 GB, free: 118.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004348/1.595, allocations: 0.4894 MB / 0.7427 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/1.612, allocations: 5.516 MB / 0.7481 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003497/1.616, allocations: 2.245 MB / 0.7503 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002879/1.619, allocations: 1.142 MB / 0.7514 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/1.619, allocations: 0 / 0.7514 GB, free: 114.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.875/5.494, allocations: 89.65 MB / 0.839 GB, free: 51.85 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat