Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_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_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.0008437/0.0008441, allocations: 91.58 kB / 17.3 MB, free: 6.363 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.001121/0.001121, allocations: 176.7 kB / 18.21 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004791/0.0004792, allocations: 16.38 kB / 281.5 MB, free: 3.312 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.11, allocations: 47.57 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009519/0.1196, allocations: 7.621 MB / 336.7 MB, free: 12 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005842/0.1255, allocations: 2.677 MB / 339.4 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001427/0.127, allocations: 31.88 kB / 339.4 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.1286, allocations: 481.4 kB / 339.9 MB, free: 8.805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001558/0.1302, allocations: 365.3 kB / 340.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007987/0.131, allocations: 323.6 kB / 340.5 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001859/0.1329, allocations: 1.421 MB / 342 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000873/0.1338, allocations: 0.529 MB / 342.5 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007147/0.1345, allocations: 457.6 kB / 342.9 MB, free: 5.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005638/0.1351, allocations: 0.5207 MB / 343.5 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.1352, allocations: 63.94 kB / 343.5 MB, free: 5.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002816/0.1355, allocations: 104 kB / 343.6 MB, free: 5.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001677/0.1357, allocations: 198.9 kB / 343.8 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005678/0.1362, allocations: 0.5961 MB / 344.4 MB, free: 4.207 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001432/0.1377, allocations: 1.591 MB / 346 MB, free: 2.609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.666e-06/0.1377, allocations: 4 kB / 346 MB, free: 2.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1377, allocations: 0 / 346 MB, free: 2.605 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.1377, allocations: 0 / 346 MB, free: 2.605 MB / 286.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.002235/0.14, allocations: 1.312 MB / 347.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.14, allocations: 12.03 kB / 347.3 MB, free: 1.227 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.1402, allocations: 152.3 kB / 347.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006009/0.1408, allocations: 183.3 kB / 347.7 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.142, allocations: 0.7821 MB / 348.4 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/0.1421, allocations: 77.98 kB / 348.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.1422, allocations: 100 kB / 348.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.1438, allocations: 0.9575 MB / 349.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.1438, allocations: 7.906 kB / 349.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.1439, allocations: 43.98 kB / 349.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.364e-05/0.1439, allocations: 24 kB / 349.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.1451, allocations: 0.6519 MB / 350.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005674/0.1508, allocations: 4.135 MB / 354.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.152, allocations: 471 kB / 354.9 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.1523, allocations: 169.4 kB / 355.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.1524, allocations: 11.73 kB / 355.1 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.1524, allocations: 38.56 kB / 355.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.685e-06/0.1524, allocations: 0 / 355.1 MB, free: 9.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002581/0.155, allocations: 1.357 MB / 356.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.1551, allocations: 106.8 kB / 356.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/0.1564, allocations: 0.8979 MB / 357.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.1564, allocations: 33.7 kB / 357.5 MB, free: 6.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005228/0.157, allocations: 0.5954 MB / 358.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.1571, allocations: 149.8 kB / 358.2 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.656e-05/0.1572, allocations: 69.69 kB / 358.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1574, allocations: 330 kB / 358.6 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.1577, allocations: 169.9 kB / 358.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.1582, allocations: 0.4938 MB / 359.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009054/0.1591, allocations: 0.6948 MB / 360 MB, free: 3.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1592, allocations: 0 / 360 MB, free: 3.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001297/0.1605, allocations: 0.7662 MB / 360.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002613/0.1607, allocations: 392.8 kB / 361.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.1608, allocations: 15.94 kB / 361.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.1609, allocations: 28.84 kB / 361.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005588/0.1615, allocations: 179.7 kB / 361.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000949/0.1625, allocations: 1.292 MB / 362.6 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.1631, allocations: 43.89 kB / 362.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/0.1631, allocations: 39.98 kB / 362.7 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.892e-06/0.1631, allocations: 7.938 kB / 362.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009266/0.1641, allocations: 0.6132 MB / 363.3 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1641, allocations: 12.78 kB / 363.4 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.51e-05/0.1642, allocations: 36.84 kB / 363.4 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/0.1647, allocations: 167.7 kB / 363.6 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008/0.1655, allocations: 1.295 MB / 364.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005233/0.1661, allocations: 31.91 kB / 364.9 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.1661, allocations: 36 kB / 364.9 MB, free: 14.42 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004577/0.1666, allocations: 336.8 kB / 365.2 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.1667, allocations: 94.86 kB / 365.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007912/0.1675, allocations: 443.3 kB / 365.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1675, allocations: 4 kB / 365.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.1675, allocations: 0 / 365.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1675, allocations: 11.98 kB / 365.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.1694, allocations: 1.394 MB / 367.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.1695, allocations: 4 kB / 367.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.1698, allocations: 87.83 kB / 367.3 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.923e-05/0.1699, allocations: 21.08 kB / 367.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.566e-05/0.17, allocations: 12 kB / 367.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008142/0.1708, allocations: 1.28 MB / 368.6 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.1708, allocations: 7.969 kB / 368.6 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.1719, allocations: 0.7326 MB / 369.3 MB, free: 9.734 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002887/0.1722, allocations: 204 kB / 369.5 MB, free: 9.516 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.882e-05/0.1723, allocations: 12 kB / 369.5 MB, free: 9.504 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000378/0.1727, allocations: 23.98 kB / 369.6 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.1727, allocations: 31.95 kB / 369.6 MB, free: 9.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.1728, allocations: 19.94 kB / 369.6 MB, free: 9.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008323/0.1736, allocations: 0.6055 MB / 370.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1736, allocations: 0 / 370.2 MB, free: 8.812 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001176/0.1748, allocations: 348 kB / 370.6 MB, free: 8.473 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001407/0.1762, allocations: 1.296 MB / 371.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.1779, allocations: 0.9676 MB / 372.8 MB, free: 6.137 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.801e-05/0.1779, allocations: 4 kB / 372.8 MB, free: 6.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004017/0.1783, allocations: 291.2 kB / 373.1 MB, free: 5.836 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001518/0.1798, allocations: 227.6 kB / 373.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1986/0.3785, allocations: 8.746 MB / 382.1 MB, free: 49.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006113/0.3792, allocations: 1.031 MB / 383.1 MB, free: 48.44 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007215/0.3799, allocations: 125.2 kB / 383.2 MB, free: 48.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005997/0.3805, allocations: 394.8 kB / 383.6 MB, free: 48.42 MB / 318.1 MB Notification: Performance of SimCode: time 1.302e-06/0.3805, allocations: 0 / 383.6 MB, free: 48.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0411/0.4216, allocations: 18.66 MB / 402.3 MB, free: 39.33 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.4218, allocations: 258.6 kB / 402.5 MB, free: 39.06 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.259/2.681, allocations: 0 / 402.5 MB, free: 39.06 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches