Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 107.1 kB / 17.74 MB, free: 5.297 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.001423/0.001423, allocations: 188.2 kB / 18.67 MB, free: 4.375 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.328/1.328, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 47.91 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2231, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.008715/0.2318, allocations: 7.963 MB / 409.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004677/0.2366, allocations: 2.625 MB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.2376, allocations: 23.94 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.2395, allocations: 0.4892 MB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001423/0.2409, allocations: 400.8 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007213/0.2416, allocations: 223.6 kB / 413.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001747/0.2434, allocations: 1.23 MB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008772/0.2443, allocations: 0.5331 MB / 414.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008063/0.2451, allocations: 490 kB / 415.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009643/0.2461, allocations: 0.5172 MB / 415.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002843/0.2464, allocations: 120 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005377/0.2469, allocations: 156 kB / 416.2 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.2472, allocations: 231.2 kB / 416.4 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008072/0.248, allocations: 0.5677 MB / 416.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.2498, allocations: 1.456 MB / 418.4 MB, free: 7.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.2499, allocations: 0 / 418.4 MB, free: 7.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2499, allocations: 3.938 kB / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.972e-05/0.2499, allocations: 0 / 418.4 MB, free: 7.797 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.002711/0.2526, allocations: 1.305 MB / 419.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2527, allocations: 15.89 kB / 419.7 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000539/0.2532, allocations: 143.6 kB / 419.9 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.2544, allocations: 0.6493 MB / 420.5 MB, free: 5.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.348e-05/0.2545, allocations: 66.38 kB / 420.6 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.2546, allocations: 87.94 kB / 420.7 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.2561, allocations: 0.8223 MB / 421.5 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.67e-05/0.2562, allocations: 7.906 kB / 421.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.099e-05/0.2563, allocations: 39.98 kB / 421.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.2563, allocations: 20 kB / 421.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.2574, allocations: 0.5426 MB / 422.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00468/0.2621, allocations: 3.547 MB / 425.6 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/0.2627, allocations: 242.6 kB / 425.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.263, allocations: 116.8 kB / 426 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.312e-05/0.2631, allocations: 4 kB / 426 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.2631, allocations: 38.56 kB / 426 MB, free: 15.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 2.976e-06/0.2631, allocations: 4 kB / 426 MB, free: 15.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002343/0.2655, allocations: 1.079 MB / 427.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.2655, allocations: 85.05 kB / 427.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/0.2666, allocations: 0.7508 MB / 428 MB, free: 13.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.2667, allocations: 29.7 kB / 428 MB, free: 13.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003489/0.267, allocations: 0.5213 MB / 428.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/0.2671, allocations: 110.5 kB / 428.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.2673, allocations: 118.2 kB / 428.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.2674, allocations: 382.8 kB / 429.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.2677, allocations: 137.2 kB / 429.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.2683, allocations: 446.2 kB / 429.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008237/0.2691, allocations: 0.6102 MB / 430.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.005e-06/0.2691, allocations: 4 kB / 430.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001232/0.2703, allocations: 0.6501 MB / 430.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.2704, allocations: 11.94 kB / 430.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.2704, allocations: 15.94 kB / 431 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.2706, allocations: 32.78 kB / 431 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004675/0.2711, allocations: 155.7 kB / 431.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001132/0.2722, allocations: 1.379 MB / 432.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/0.2728, allocations: 47.98 kB / 432.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.344e-05/0.2728, allocations: 32 kB / 432.6 MB, free: 8.629 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (78): * Single equations (assignments): 77 * 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.0003418/0.2732, allocations: 245.5 kB / 432.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.2733, allocations: 75.06 kB / 432.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000728/0.2741, allocations: 334 kB / 433.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2741, allocations: 0 / 433.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2741, allocations: 4 kB / 433.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.2741, allocations: 7.969 kB / 433.3 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.2759, allocations: 1.115 MB / 434.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.165e-06/0.2759, allocations: 11.92 kB / 434.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.2762, allocations: 59.91 kB / 434.4 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-05/0.2763, allocations: 21.06 kB / 434.5 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.2763, allocations: 12 kB / 434.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009197/0.2772, allocations: 1.375 MB / 435.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.2772, allocations: 0 / 435.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009325/0.2782, allocations: 0.5691 MB / 436.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.2785, allocations: 180.1 kB / 436.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001096/0.2786, allocations: 8 kB / 436.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003575/0.2789, allocations: 23.98 kB / 436.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.335e-05/0.279, allocations: 27.91 kB / 436.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.2791, allocations: 11.98 kB / 436.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00071/0.2798, allocations: 0.5147 MB / 437.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2798, allocations: 0 / 437.2 MB, free: 3.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007166/0.2805, allocations: 175.9 kB / 437.3 MB, free: 3.578 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * 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 (28): * Single equations (assignments): 27 * 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.0002338/0.2808, allocations: 137.5 kB / 437.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009987/0.2818, allocations: 476.6 kB / 437.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2818, allocations: 0.625 kB / 437.9 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000395/0.2822, allocations: 250.5 kB / 438.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.2832, allocations: 189.7 kB / 438.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.2859, allocations: 1.492 MB / 439.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.2866, allocations: 0.9526 MB / 440.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.2868, allocations: 55.42 kB / 440.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2868, allocations: 3.938 kB / 440.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Templates: time 0.01854/0.3054, allocations: 13.9 MB / 454.8 MB, free: 2.066 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches