Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 109.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001198/0.001198, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 9.016 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 59.72 kB / 306.9 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08896, allocations: 50.53 MB / 357.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature): time 0.008369/0.09737, allocations: 7.951 MB / 365.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004025/0.1014, allocations: 2.637 MB / 368 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005482/0.102, allocations: 27.94 kB / 368.1 MB, free: 3.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.1032, allocations: 445.6 kB / 368.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007495/0.104, allocations: 353.5 kB / 368.8 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.1044, allocations: 183.8 kB / 369 MB, free: 2.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.1054, allocations: 1.171 MB / 370.2 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005866/0.106, allocations: 479.8 kB / 370.7 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005163/0.1065, allocations: 442 kB / 371.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004448/0.107, allocations: 0.4938 MB / 371.6 MB, free: 48 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1472/0.2542, allocations: 77.23 kB / 371.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005732/0.2548, allocations: 113.5 kB / 371.8 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.255, allocations: 195.6 kB / 372 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005189/0.2555, allocations: 0.5219 MB / 372.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.2567, allocations: 1.169 MB / 373.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2567, allocations: 0 / 373.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.2568, allocations: 1.094 kB / 373.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.2568, allocations: 0 / 373.6 MB, free: 11.2 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00217/0.2589, allocations: 1.305 MB / 375 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.259, allocations: 8.594 kB / 375 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007327/0.2597, allocations: 176.6 kB / 375.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008784/0.2606, allocations: 0.6353 MB / 375.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.61e-05/0.2607, allocations: 62.5 kB / 375.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.2608, allocations: 89.88 kB / 375.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.2622, allocations: 0.825 MB / 376.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.2622, allocations: 4.531 kB / 376.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.451e-05/0.2623, allocations: 35.47 kB / 376.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.2623, allocations: 24.25 kB / 376.8 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.2634, allocations: 0.5387 MB / 377.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004013/0.2674, allocations: 3.573 MB / 380.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.2679, allocations: 244.1 kB / 381.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002383/0.2682, allocations: 116.8 kB / 381.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.2682, allocations: 5.859 kB / 381.3 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.2683, allocations: 42.34 kB / 381.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of pre-optimization done (n=26): time 3.336e-06/0.2683, allocations: 0 / 381.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002053/0.2703, allocations: 1.071 MB / 382.4 MB, free: 7.152 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.803e-05/0.2704, allocations: 85.64 kB / 382.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009445/0.2713, allocations: 0.7657 MB / 383.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.2713, allocations: 33.67 kB / 383.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002401/0.2716, allocations: 0.5118 MB / 383.8 MB, free: 6.273 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.185e-05/0.2717, allocations: 105.9 kB / 383.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001454/0.2718, allocations: 120.8 kB / 384 MB, free: 6.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.583e-05/0.2719, allocations: 386.5 kB / 384.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/0.2722, allocations: 134.7 kB / 384.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003741/0.2726, allocations: 442.6 kB / 384.9 MB, free: 5.277 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006454/0.2732, allocations: 0.611 MB / 385.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.2733, allocations: 3.594 kB / 385.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001106/0.2744, allocations: 0.6474 MB / 386.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.2744, allocations: 9.969 kB / 386.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.2744, allocations: 10.22 kB / 386.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000159/0.2746, allocations: 35.81 kB / 386.3 MB, free: 4.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004758/0.2751, allocations: 154.4 kB / 386.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007138/0.2758, allocations: 1.297 MB / 387.7 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006227/0.2764, allocations: 50.83 kB / 387.8 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.486e-05/0.2765, allocations: 40.83 kB / 387.8 MB, free: 3.172 MB / 302.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.0003201/0.2768, allocations: 241 kB / 388 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.2769, allocations: 75.31 kB / 388.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006566/0.2776, allocations: 335 kB / 388.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2776, allocations: 4 kB / 388.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.2776, allocations: 0.5625 kB / 388.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2776, allocations: 1.359 kB / 388.4 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.2792, allocations: 1.122 MB / 389.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2792, allocations: 1.094 kB / 389.6 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.2795, allocations: 63.84 kB / 389.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.875e-05/0.2796, allocations: 33.94 kB / 389.7 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.2797, allocations: 7.719 kB / 389.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005609/0.2802, allocations: 1.271 MB / 390.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2802, allocations: 2.5 kB / 390.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008243/0.2811, allocations: 0.5765 MB / 391.5 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.2813, allocations: 175.5 kB / 391.7 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.16e-05/0.2814, allocations: 10.62 kB / 391.7 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003538/0.2817, allocations: 26.55 kB / 391.7 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.364e-05/0.2818, allocations: 31.66 kB / 391.8 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.2818, allocations: 11.66 kB / 391.8 MB, free: 280 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000614/0.2825, allocations: 0.5189 MB / 392.3 MB, free: 48 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2825, allocations: 0 / 392.3 MB, free: 48 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007271/0.2832, allocations: 170.4 kB / 392.5 MB, free: 32 kB / 302.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.0002093/0.2834, allocations: 118.1 kB / 392.6 MB, free: 15.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008843/0.2843, allocations: 479.7 kB / 393 MB, free: 15.74 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2843, allocations: 1.344 kB / 393 MB, free: 15.74 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.2847, allocations: 242.3 kB / 393.3 MB, free: 15.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.2857, allocations: 179.3 kB / 393.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.2885, allocations: 1.843 MB / 395.3 MB, free: 14.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005822/0.2891, allocations: 0.9553 MB / 396.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.2893, allocations: 55.06 kB / 396.3 MB, free: 13.56 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2893, allocations: 0 / 396.3 MB, free: 13.56 MB / 318.1 MB Notification: Performance of Templates: time 0.01883/0.3081, allocations: 13.81 MB / 410.1 MB, free: 4.375 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches