Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") translateModel(Modelica.Electrical.Analog.Examples.HeatingResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heatingResistor.i|heatingResistor.LossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001272, allocations: 100.3 kB / 18.39 MB, free: 4.66 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.001343/0.001343, allocations: 188.2 kB / 19.33 MB, free: 3.738 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.492/1.492, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001387/0.001388, allocations: 51.94 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1097, allocations: 46.62 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.004311/0.1141, allocations: 2.136 MB / 378 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1155, allocations: 0.5073 MB / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.1157, allocations: 0 / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001617/0.1159, allocations: 19.8 kB / 378.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.116, allocations: 47.56 kB / 378.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000301/0.1164, allocations: 35.89 kB / 378.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002698/0.1166, allocations: 155.3 kB / 378.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.1169, allocations: 69.41 kB / 378.8 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001671/0.117, allocations: 59.73 kB / 378.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.1172, allocations: 63.75 kB / 378.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.892e-05/0.1172, allocations: 12 kB / 378.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.748e-05/0.1173, allocations: 23.98 kB / 378.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.263e-05/0.1174, allocations: 31.8 kB / 379 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.582e-05/0.1175, allocations: 71.67 kB / 379 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002865/0.1178, allocations: 163.4 kB / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1178, allocations: 0 / 379.2 MB, free: 1.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1178, allocations: 4 kB / 379.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1178, allocations: 0 / 379.2 MB, free: 1.164 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007773/0.1186, allocations: 443.1 kB / 379.6 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.1187, allocations: 11.89 kB / 379.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.1188, allocations: 12.84 kB / 379.7 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.1192, allocations: 204 kB / 379.9 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.1192, allocations: 8.609 kB / 379.9 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.1192, allocations: 16.38 kB / 379.9 MB, free: 408 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000267/0.1195, allocations: 127.8 kB / 380 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.1195, allocations: 0 / 380 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.1195, allocations: 4 kB / 380 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1196, allocations: 4 kB / 380 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.1197, allocations: 72.67 kB / 380.1 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2429/0.3627, allocations: 0.5971 MB / 380.7 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003319/0.3631, allocations: 85.41 kB / 380.8 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.569e-05/0.3632, allocations: 30.38 kB / 380.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.3632, allocations: 0.75 kB / 380.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.3632, allocations: 35.97 kB / 380.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 2.184e-06/0.3632, allocations: 3 kB / 380.8 MB, free: 12.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007098/0.3639, allocations: 257.2 kB / 381.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.364, allocations: 56.47 kB / 381.1 MB, free: 12.56 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3641, allocations: 147.9 kB / 381.3 MB, free: 12.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.3641, allocations: 27.08 kB / 381.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/0.3642, allocations: 125.7 kB / 381.4 MB, free: 12.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.3642, allocations: 19.3 kB / 381.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-05/0.3643, allocations: 23.8 kB / 381.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.327e-05/0.3643, allocations: 327 kB / 381.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.257e-05/0.3644, allocations: 21.41 kB / 381.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.147e-05/0.3645, allocations: 45.53 kB / 381.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.3646, allocations: 74.7 kB / 381.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3646, allocations: 0 / 381.9 MB, free: 11.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002649/0.3649, allocations: 128 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3649, allocations: 5.5 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3649, allocations: 8.312 kB / 382.1 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.3651, allocations: 43.42 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.47e-05/0.3652, allocations: 8.656 kB / 382.1 MB, free: 11.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.3666, allocations: 1.68 MB / 383.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.15e-05/0.3666, allocations: 13.42 kB / 383.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.3667, allocations: 6.688 kB / 383.8 MB, free: 10.38 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 4 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 7.412e-05/0.3667, allocations: 118.9 kB / 383.9 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.3668, allocations: 13.08 kB / 384 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.3668, allocations: 14.42 kB / 384 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3668, allocations: 1.375 kB / 384 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3668, allocations: 9.109 kB / 384 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3668, allocations: 0 / 384 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.367, allocations: 210.8 kB / 384.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.367, allocations: 0 / 384.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.543e-05/0.3671, allocations: 7.438 kB / 384.2 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.3672, allocations: 35.91 kB / 384.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.3672, allocations: 4.531 kB / 384.2 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.3683, allocations: 1.686 MB / 385.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3684, allocations: 1.484 kB / 385.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003196/0.3687, allocations: 217.8 kB / 386.1 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.27e-05/0.3687, allocations: 88.25 kB / 386.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.3688, allocations: 1.734 kB / 386.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.3689, allocations: 6.641 kB / 386.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.944e-05/0.3689, allocations: 5.562 kB / 386.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.868e-06/0.3689, allocations: 9.688 kB / 386.2 MB, free: 8.258 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.542e-05/0.369, allocations: 107.4 kB / 386.3 MB, free: 8.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.369, allocations: 1.375 kB / 386.3 MB, free: 8.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003742/0.3694, allocations: 34.09 kB / 386.4 MB, free: 8.172 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001354/0.3695, allocations: 105 kB / 386.5 MB, free: 8.078 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004223/0.37, allocations: 192.2 kB / 386.7 MB, free: 7.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.37, allocations: 0 / 386.7 MB, free: 7.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.3702, allocations: 158.7 kB / 386.8 MB, free: 7.809 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.3705, allocations: 26.66 kB / 386.8 MB, free: 7.797 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006638/0.3711, allocations: 312.2 kB / 387.2 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001682/0.3713, allocations: 0.7093 MB / 387.9 MB, free: 6.875 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.894e-05/0.3714, allocations: 11.61 kB / 387.9 MB, free: 6.867 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3714, allocations: 0 / 387.9 MB, free: 6.867 MB / 318.1 MB Notification: Performance of Templates: time 0.004661/0.376, allocations: 1.893 MB / 389.8 MB, free: 6.746 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches