Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009659/0.0009661, allocations: 97.11 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 185.7 kB / 17.89 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 223.2 MB / 241.9 MB, free: 356 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2033/0.2033, allocations: 44.24 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003001, allocations: 8 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 61.92 MB / 471.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses): time 0.01373/0.1219, allocations: 10.31 MB / 481.9 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009592/0.1315, allocations: 3.67 MB / 485.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002525/0.1341, allocations: 63.69 kB / 485.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002964/0.1371, allocations: 0.6833 MB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00394/0.141, allocations: 0.7963 MB / 487.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.1429, allocations: 335.5 kB / 487.5 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00463/0.1475, allocations: 3.301 MB / 490.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003832/0.1514, allocations: 2.116 MB / 492.9 MB, free: 8.266 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002121/0.1535, allocations: 1.128 MB / 494 MB, free: 7.133 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002777/0.1563, allocations: 1.584 MB / 495.6 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007241/0.157, allocations: 168 kB / 495.8 MB, free: 5.379 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1582, allocations: 259.9 kB / 496 MB, free: 5.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.1592, allocations: 0.9073 MB / 496.9 MB, free: 4.215 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008478/0.1601, allocations: 0.625 MB / 497.6 MB, free: 3.582 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004424/0.1645, allocations: 4.472 MB / 0.4903 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1646, allocations: 0 / 0.4903 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.368e-06/0.1646, allocations: 4 kB / 0.4903 GB, free: 15.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001361/0.1647, allocations: 3.938 kB / 0.4903 GB, free: 15.09 MB / 382.1 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.006594/0.1713, allocations: 3.252 MB / 0.4935 GB, free: 11.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.1714, allocations: 8.031 kB / 0.4935 GB, free: 11.76 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008703/0.1723, allocations: 409 kB / 0.4939 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.1734, allocations: 395.5 kB / 0.4942 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003703/0.1771, allocations: 1.962 MB / 0.4961 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.1773, allocations: 225.6 kB / 0.4964 GB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004671/0.1778, allocations: 279.9 kB / 0.4966 GB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007007/0.1848, allocations: 3.715 MB / 0.5003 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-05/0.1849, allocations: 11.84 kB / 0.5003 GB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002646/0.1852, allocations: 120 kB / 0.5004 GB, free: 4.535 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001683/0.1854, allocations: 141.5 kB / 0.5005 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006119/0.1915, allocations: 3.16 MB / 0.5036 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2745/0.466, allocations: 11.6 MB / 0.5149 GB, free: 40.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003979/0.4701, allocations: 2.178 MB / 0.5171 GB, free: 39.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/0.4724, allocations: 1.236 MB / 0.5183 GB, free: 38.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003027/0.4727, allocations: 211.5 kB / 0.5185 GB, free: 38.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.4728, allocations: 54.22 kB / 0.5185 GB, free: 38.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=139): time 3.827e-06/0.4728, allocations: 3.281 kB / 0.5185 GB, free: 38.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.0171/0.4899, allocations: 7.877 MB / 0.5262 GB, free: 34.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.49, allocations: 73 kB / 0.5263 GB, free: 34.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002787/0.4928, allocations: 1.928 MB / 0.5282 GB, free: 33.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001339/0.4929, allocations: 55.27 kB / 0.5282 GB, free: 33.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009754/0.4939, allocations: 1.363 MB / 0.5296 GB, free: 31.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004078/0.4943, allocations: 0.5222 MB / 0.5301 GB, free: 31.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.756e-05/0.4944, allocations: 38.73 kB / 0.5301 GB, free: 31.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.4946, allocations: 376.7 kB / 0.5305 GB, free: 31.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.4959, allocations: 0.8831 MB / 0.5313 GB, free: 30.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.4973, allocations: 1.341 MB / 0.5326 GB, free: 29.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/0.4987, allocations: 1.089 MB / 0.5337 GB, free: 29.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.4987, allocations: 3.625 kB / 0.5337 GB, free: 29.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.004299/0.503, allocations: 2.929 MB / 0.5366 GB, free: 26.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.5031, allocations: 11.95 kB / 0.5366 GB, free: 26.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.5031, allocations: 16 kB / 0.5366 GB, free: 26.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007878/0.5039, allocations: 387.6 kB / 0.537 GB, free: 26.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.5054, allocations: 455.2 kB / 0.5374 GB, free: 25.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004756/0.5101, allocations: 6.194 MB / 0.5434 GB, free: 19.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/0.512, allocations: 119.8 kB / 0.5436 GB, free: 19.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.5122, allocations: 75.98 kB / 0.5436 GB, free: 18.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0019/0.5141, allocations: 0.9032 MB / 0.5445 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004283/0.5145, allocations: 201.5 kB / 0.5447 GB, free: 17.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004408/0.519, allocations: 2.919 MB / 0.5475 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.519, allocations: 19.98 kB / 0.5476 GB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.519, allocations: 8 kB / 0.5476 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.519, allocations: 11.97 kB / 0.5476 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008712/0.5277, allocations: 6.147 MB / 0.5536 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.5278, allocations: 4 kB / 0.5536 GB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008993/0.5287, allocations: 239.6 kB / 0.5538 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/0.5304, allocations: 0.8078 MB / 0.5546 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.56e-05/0.5305, allocations: 39.98 kB / 0.5547 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009791/0.5403, allocations: 9.838 MB / 0.5643 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.5403, allocations: 12 kB / 0.5643 GB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007245/0.5476, allocations: 4.159 MB / 0.5683 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.5491, allocations: 0.4905 MB / 0.5688 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.5494, allocations: 39.95 kB / 0.5688 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.5504, allocations: 99.88 kB / 0.5689 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003288/0.5507, allocations: 121.1 kB / 0.5691 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.5509, allocations: 55.94 kB / 0.5691 GB, free: 8.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002432/0.5533, allocations: 1.321 MB / 0.5704 GB, free: 6.914 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5533, allocations: 0 / 0.5704 GB, free: 6.914 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002431/0.5557, allocations: 0.574 MB / 0.571 GB, free: 6.344 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * 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 (116): * Single equations (assignments): 113 * 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,(5,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007335/0.5631, allocations: 4.787 MB / 0.5756 GB, free: 1.473 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00438/0.5675, allocations: 2.633 MB / 0.5782 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.5675, allocations: 4 kB / 0.5782 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/0.5702, allocations: 1.632 MB / 0.5798 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002941/0.5731, allocations: 0.5076 MB / 0.5803 GB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04005/0.6132, allocations: 17.96 MB / 0.5978 GB, free: 9.473 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003651/0.6169, allocations: 2.221 MB / 0.6 GB, free: 7.223 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002154/0.6191, allocations: 465.7 kB / 0.6005 GB, free: 6.766 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/0.6208, allocations: 1.14 MB / 0.6016 GB, free: 5.625 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6208, allocations: 0 / 0.6016 GB, free: 5.625 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/0.7218, allocations: 51.97 MB / 0.6523 GB, free: 2.148 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.7221, allocations: 237.2 kB / 0.6525 GB, free: 1.902 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.63/4.352, allocations: 4 kB / 0.6525 GB, free: 1.898 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat does not exist to compare? outputFormat=mat