Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002057/0.002057, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.003043/0.003043, allocations: 191 kB / 18 MB, free: 4.977 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.681/1.681, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001806, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3664, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004027/0.3705, allocations: 2.13 MB / 402.9 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.3716, allocations: 0.5493 MB / 403.4 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.3718, allocations: 4 kB / 403.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.372, allocations: 19.73 kB / 403.4 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.3721, allocations: 51.56 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003038/0.3724, allocations: 31.95 kB / 403.5 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002256/0.3726, allocations: 159.2 kB / 403.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.3728, allocations: 61.45 kB / 403.7 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.373, allocations: 63.73 kB / 403.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001337/0.3731, allocations: 67.69 kB / 403.9 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.3732, allocations: 12 kB / 403.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.968e-05/0.3733, allocations: 23.98 kB / 403.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.898e-05/0.3733, allocations: 27.86 kB / 403.9 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.199e-05/0.3734, allocations: 71.67 kB / 404 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002706/0.3737, allocations: 164.5 kB / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3737, allocations: 0 / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3737, allocations: 4 kB / 404.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.3737, allocations: 0 / 404.2 MB, free: 5.434 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.0006573/0.3744, allocations: 443.2 kB / 404.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.3744, allocations: 8.031 kB / 404.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.3745, allocations: 12.84 kB / 404.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.3748, allocations: 212 kB / 404.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3749, allocations: 8.609 kB / 404.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.3749, allocations: 16.38 kB / 404.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.3752, allocations: 124.5 kB / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.3752, allocations: 0 / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.3752, allocations: 4 kB / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.3752, allocations: 4 kB / 405 MB, free: 4.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.3754, allocations: 76.66 kB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/0.3763, allocations: 0.6095 MB / 405.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002962/0.3766, allocations: 82.62 kB / 405.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.946e-05/0.3767, allocations: 28.97 kB / 405.8 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.3768, allocations: 8 kB / 405.8 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.414e-05/0.3768, allocations: 38.44 kB / 405.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.3768, allocations: 4 kB / 405.8 MB, free: 3.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007179/0.3775, allocations: 251.4 kB / 406.1 MB, free: 3.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.3776, allocations: 59.34 kB / 406.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.3777, allocations: 152.9 kB / 406.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3778, allocations: 25.7 kB / 406.3 MB, free: 3.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.012e-05/0.3779, allocations: 127.9 kB / 406.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/0.3779, allocations: 11.8 kB / 406.4 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.866e-05/0.3779, allocations: 29.62 kB / 406.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3781, allocations: 318.8 kB / 406.8 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.046e-05/0.3782, allocations: 23.98 kB / 406.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.591e-05/0.3782, allocations: 46.5 kB / 406.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001346/0.3784, allocations: 70.5 kB / 406.9 MB, free: 2.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3784, allocations: 0 / 406.9 MB, free: 2.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002832/0.3787, allocations: 134.3 kB / 407 MB, free: 2.254 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.3787, allocations: 7.984 kB / 407 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3787, allocations: 4 kB / 407 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001913/0.3789, allocations: 36.78 kB / 407.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.758e-05/0.379, allocations: 11.98 kB / 407.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001797/0.3808, allocations: 1.693 MB / 408.8 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.654e-05/0.3809, allocations: 11.88 kB / 408.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.3809, allocations: 4 kB / 408.8 MB, free: 348 kB / 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 0.00011/0.381, allocations: 117.8 kB / 408.9 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.3811, allocations: 11.84 kB / 408.9 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.823e-05/0.3811, allocations: 20.73 kB / 408.9 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.3811, allocations: 0 / 408.9 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.3811, allocations: 4 kB / 408.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3811, allocations: 0 / 408.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002636/0.3814, allocations: 213.6 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3814, allocations: 0 / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-05/0.3814, allocations: 7.938 kB / 409.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001244/0.3816, allocations: 40.77 kB / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.636e-06/0.3816, allocations: 0 / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001476/0.3831, allocations: 1.678 MB / 410.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3831, allocations: 4.062 kB / 410.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.3834, allocations: 212.2 kB / 411.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.3835, allocations: 92.94 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.3835, allocations: 0 / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.3836, allocations: 8 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.3837, allocations: 11.98 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.3837, allocations: 0 / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.777e-05/0.3838, allocations: 109.8 kB / 411.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3838, allocations: 192 / 411.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003722/0.3842, allocations: 39.91 kB / 411.4 MB, free: 13.55 MB / 334.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.0001493/0.3843, allocations: 111.6 kB / 411.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004318/0.3848, allocations: 194.6 kB / 411.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3848, allocations: 0 / 411.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.385, allocations: 154.7 kB / 411.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3853, allocations: 14.28 kB / 411.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006083/0.3859, allocations: 291.9 kB / 412.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.3862, allocations: 0.708 MB / 412.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.839e-05/0.3863, allocations: 4.438 kB / 412.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.3863, allocations: 11.44 kB / 412.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3863, allocations: 3.938 kB / 412.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Templates: time 0.004685/0.391, allocations: 1.513 MB / 414.3 MB, free: 10.48 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches