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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 110.2 kB / 18.25 MB, free: 4.898 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.001194/0.001194, allocations: 195.3 kB / 19.18 MB, free: 3.977 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.317/1.317, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001182/0.001183, allocations: 55.92 kB / 281.3 MB, free: 3.152 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07563/0.07682, allocations: 46.62 MB / 328 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008915/0.08578, allocations: 8.145 MB / 336.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00431/0.09013, allocations: 2.735 MB / 338.8 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005808/0.09077, allocations: 31.88 kB / 338.9 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.09203, allocations: 0.5356 MB / 339.4 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000984/0.09302, allocations: 440.5 kB / 339.8 MB, free: 8.512 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007146/0.09375, allocations: 359.5 kB / 340.2 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.09531, allocations: 1.499 MB / 341.7 MB, free: 6.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008035/0.09613, allocations: 0.601 MB / 342.3 MB, free: 6.031 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005936/0.09673, allocations: 0.5524 MB / 342.8 MB, free: 5.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006008/0.09734, allocations: 0.6026 MB / 343.4 MB, free: 4.871 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001667/0.09752, allocations: 140 kB / 343.6 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003228/0.09785, allocations: 176 kB / 343.7 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00021/0.09807, allocations: 294.9 kB / 344 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000573/0.09865, allocations: 0.6724 MB / 344.7 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001539/0.1002, allocations: 1.69 MB / 346.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1002, allocations: 0 / 346.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1002, allocations: 0 / 346.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.1002, allocations: 0 / 346.4 MB, free: 1.902 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.002253/0.1025, allocations: 1.522 MB / 347.9 MB, free: 332 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.1025, allocations: 8.031 kB / 347.9 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005988/0.1031, allocations: 183.2 kB / 348.1 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.1043, allocations: 0.7784 MB / 348.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.311e-05/0.1043, allocations: 78.12 kB / 349 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.1045, allocations: 96 kB / 349.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/0.1059, allocations: 0.9575 MB / 350 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.106, allocations: 7.906 kB / 350 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.615e-05/0.1061, allocations: 40 kB / 350.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.1061, allocations: 24 kB / 350.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.1073, allocations: 0.6363 MB / 350.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005096/0.1124, allocations: 4.131 MB / 354.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009966/0.1134, allocations: 426.9 kB / 355.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.1137, allocations: 170.2 kB / 355.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.729e-05/0.1138, allocations: 7.75 kB / 355.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.1138, allocations: 30.56 kB / 355.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.112e-05/0.1138, allocations: 8 kB / 355.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002341/0.1162, allocations: 1.318 MB / 356.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.1162, allocations: 110.8 kB / 356.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.1173, allocations: 0.9018 MB / 357.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.1174, allocations: 33.7 kB / 357.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003997/0.1178, allocations: 0.5914 MB / 358.4 MB, free: 5.344 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.1179, allocations: 149.9 kB / 358.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001691/0.1181, allocations: 134.5 kB / 358.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1182, allocations: 333.9 kB / 359 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.1186, allocations: 180.8 kB / 359.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.1191, allocations: 493.6 kB / 359.7 MB, free: 3.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008687/0.12, allocations: 0.6792 MB / 360.4 MB, free: 3.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.12, allocations: 4 kB / 360.4 MB, free: 3.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001215/0.1212, allocations: 0.7546 MB / 361.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1212, allocations: 8 kB / 361.1 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.1213, allocations: 16.06 kB / 361.1 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001486/0.1214, allocations: 32.84 kB / 361.2 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005559/0.122, allocations: 167.7 kB / 361.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.123, allocations: 1.386 MB / 362.7 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005487/0.1236, allocations: 47.92 kB / 362.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.1236, allocations: 36 kB / 362.8 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007868/0.1244, allocations: 350.1 kB / 363.2 MB, free: 148 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007748/0.1252, allocations: 477.8 kB / 363.6 MB, free: 15.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001184/0.1264, allocations: 0.6714 MB / 364.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.686e-06/0.1264, allocations: 4 kB / 364.3 MB, free: 14.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001653/0.1281, allocations: 0.7155 MB / 365 MB, free: 13.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1281, allocations: 8 kB / 365 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.1281, allocations: 12.72 kB / 365 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001039/0.1282, allocations: 36.84 kB / 365.1 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005544/0.1288, allocations: 167.7 kB / 365.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009592/0.1298, allocations: 1.39 MB / 366.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.1304, allocations: 31.98 kB / 366.7 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.395e-05/0.1304, allocations: 36 kB / 366.7 MB, free: 12.16 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.0002063/0.1307, allocations: 240 kB / 366.9 MB, free: 11.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.1308, allocations: 90.88 kB / 367 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009456/0.1317, allocations: 431.1 kB / 367.4 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/0.1318, allocations: 4 kB / 367.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1318, allocations: 0 / 367.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1318, allocations: 11.92 kB / 367.4 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003073/0.1349, allocations: 1.382 MB / 368.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.1349, allocations: 0 / 368.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005404/0.1355, allocations: 75.89 kB / 368.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001224/0.1356, allocations: 20.86 kB / 368.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.1357, allocations: 15.98 kB / 368.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.1368, allocations: 1.375 MB / 370.3 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1368, allocations: 3.984 kB / 370.3 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.1379, allocations: 0.7095 MB / 371 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002863/0.1382, allocations: 207.9 kB / 371.2 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.1383, allocations: 12 kB / 371.2 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004315/0.1387, allocations: 23.97 kB / 371.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.1388, allocations: 35.91 kB / 371.3 MB, free: 7.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.1389, allocations: 12 kB / 371.3 MB, free: 7.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000834/0.1397, allocations: 0.6055 MB / 371.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1397, allocations: 0 / 371.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001829/0.1416, allocations: 348 kB / 372.3 MB, free: 6.281 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.0002662/0.1418, allocations: 127.2 kB / 372.4 MB, free: 6.148 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.1443, allocations: 1.001 MB / 373.4 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.77e-06/0.1443, allocations: 0 / 373.4 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005832/0.1449, allocations: 288 kB / 373.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.1462, allocations: 238 kB / 373.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.1495, allocations: 1.867 MB / 375.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008288/0.1503, allocations: 1.028 MB / 376.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002493/0.1506, allocations: 63.42 kB / 376.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1506, allocations: 7.938 kB / 376.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of Templates: time 0.1451/0.2957, allocations: 16.81 MB / 393.7 MB, free: 45.46 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (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 & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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