Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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) 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(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007816/0.0007817, allocations: 87.7 kB / 16.31 MB, free: 6.453 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.0008795/0.0008796, allocations: 183.1 kB / 17.21 MB, free: 6.32 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.403/1.403, allocations: 223.2 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003001/0.0003002, allocations: 9.625 kB / 300.9 MB, free: 6 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 50.41 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007908/0.1146, allocations: 7.178 MB / 358.5 MB, free: 4.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005102/0.1198, allocations: 2.533 MB / 361 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009538/0.1208, allocations: 31.88 kB / 361.1 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.1221, allocations: 441.4 kB / 361.5 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009832/0.1231, allocations: 361.3 kB / 361.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006058/0.1237, allocations: 246.9 kB / 362.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.125, allocations: 1.339 MB / 363.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007042/0.1257, allocations: 452.4 kB / 363.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000651/0.1264, allocations: 445.9 kB / 364.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005952/0.127, allocations: 497.5 kB / 364.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001077/0.1271, allocations: 60 kB / 364.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002682/0.1274, allocations: 99.97 kB / 365 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.1276, allocations: 191 kB / 365.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.1278, allocations: 261.1 kB / 365.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.129, allocations: 1.32 MB / 366.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.129, allocations: 0 / 366.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.129, allocations: 0 / 366.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.129, allocations: 0 / 366.7 MB, free: 12.09 MB / 302.1 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.002047/0.1311, allocations: 1.32 MB / 368 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1311, allocations: 8.031 kB / 368.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.1313, allocations: 152.1 kB / 368.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005428/0.1318, allocations: 194.2 kB / 368.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.133, allocations: 0.7424 MB / 369.1 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.99e-05/0.133, allocations: 74 kB / 369.2 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001611/0.1332, allocations: 99.98 kB / 369.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1348, allocations: 0.9497 MB / 370.3 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.778e-05/0.1348, allocations: 3.906 kB / 370.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.918e-05/0.1349, allocations: 51.94 kB / 370.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.1349, allocations: 24 kB / 370.3 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.1361, allocations: 0.6402 MB / 371 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004838/0.141, allocations: 4.123 MB / 375.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009463/0.1419, allocations: 473.6 kB / 375.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002801/0.1422, allocations: 167 kB / 375.7 MB, free: 2.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.1423, allocations: 4 kB / 375.7 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.1423, allocations: 34.56 kB / 375.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.793e-06/0.1423, allocations: 3.938 kB / 375.8 MB, free: 2.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002204/0.1445, allocations: 1.355 MB / 377.1 MB, free: 1.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.1446, allocations: 110.8 kB / 377.2 MB, free: 1.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.1456, allocations: 0.8859 MB / 378.1 MB, free: 204 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.1457, allocations: 37.64 kB / 378.1 MB, free: 160 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.1461, allocations: 0.5875 MB / 378.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.746e-05/0.1462, allocations: 149.9 kB / 378.9 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.559e-05/0.1462, allocations: 16 kB / 378.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.1463, allocations: 333.9 kB / 379.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000301/0.1466, allocations: 173.9 kB / 379.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.1471, allocations: 497.7 kB / 379.9 MB, free: 14.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004875/0.1476, allocations: 243.8 kB / 380.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.1477, allocations: 4 kB / 380.1 MB, free: 14.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00114/0.1488, allocations: 0.7509 MB / 380.9 MB, free: 13.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002307/0.1491, allocations: 396.5 kB / 381.3 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.1491, allocations: 12 kB / 381.3 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001588/0.1492, allocations: 40.8 kB / 381.3 MB, free: 12.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005414/0.1498, allocations: 167.7 kB / 381.5 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009252/0.1507, allocations: 1.299 MB / 382.8 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/0.1512, allocations: 40.14 kB / 382.8 MB, free: 11.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.425e-05/0.1513, allocations: 36 kB / 382.8 MB, free: 11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.1513, allocations: 6.5 kB / 382.9 MB, free: 10.99 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009025/0.1522, allocations: 0.6135 MB / 383.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.1522, allocations: 8 kB / 383.5 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.99e-05/0.1523, allocations: 32.86 kB / 383.5 MB, free: 10.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/0.1528, allocations: 168.1 kB / 383.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008013/0.1536, allocations: 1.299 MB / 385 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004121/0.154, allocations: 32.16 kB / 385 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.124e-05/0.1541, allocations: 35.98 kB / 385 MB, free: 8.668 MB / 318.1 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.0004123/0.1545, allocations: 340.8 kB / 385.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.1546, allocations: 90.88 kB / 385.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007574/0.1554, allocations: 443.2 kB / 385.9 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1554, allocations: 11.94 kB / 385.9 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1554, allocations: 0 / 385.9 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1554, allocations: 7.922 kB / 385.9 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.1573, allocations: 1.399 MB / 387.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1573, allocations: 4 kB / 387.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.1576, allocations: 75.89 kB / 387.4 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.694e-05/0.1577, allocations: 24.8 kB / 387.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.1578, allocations: 16.2 kB / 387.4 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008146/0.1586, allocations: 1.272 MB / 388.7 MB, free: 4.766 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.1586, allocations: 4.156 kB / 388.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009987/0.1596, allocations: 0.7211 MB / 389.4 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/0.1599, allocations: 208 kB / 389.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.291e-05/0.16, allocations: 8 kB / 389.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003529/0.1603, allocations: 23.98 kB / 389.7 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.1604, allocations: 35.84 kB / 389.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.1605, allocations: 16 kB / 389.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008108/0.1613, allocations: 0.5975 MB / 390.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1613, allocations: 0 / 390.3 MB, free: 3.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0012/0.1625, allocations: 352 kB / 390.7 MB, free: 2.742 MB / 318.1 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.001385/0.1639, allocations: 1.3 MB / 392 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.1656, allocations: 0.9766 MB / 392.9 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.1656, allocations: 0 / 392.9 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004017/0.166, allocations: 296.3 kB / 393.2 MB, free: 92 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.1673, allocations: 223.9 kB / 393.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009278/0.1766, allocations: 5.586 MB / 399 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008331/0.1775, allocations: 1.028 MB / 400 MB, free: 8.883 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006906/0.1782, allocations: 123.3 kB / 400.2 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000508/0.1787, allocations: 399.2 kB / 400.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.1787, allocations: 0 / 400.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03621/0.2149, allocations: 18.26 MB / 418.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.2151, allocations: 239.4 kB / 419 MB, free: 6.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/2.632, allocations: 0 / 419 MB, free: 6.188 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat