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.001256/0.001256, allocations: 107.6 kB / 17.06 MB, free: 5.949 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.001364/0.001364, allocations: 196 kB / 18 MB, free: 5.039 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.541/1.541, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009636/0.0009636, allocations: 47.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3899, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004496/0.3945, allocations: 2.137 MB / 402.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3956, allocations: 0.5377 MB / 403.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.744e-05/0.3957, allocations: 0 / 403.4 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001496/0.3959, allocations: 27.78 kB / 403.4 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.547e-05/0.396, allocations: 51.55 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.3963, allocations: 43.89 kB / 403.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001945/0.3965, allocations: 147.3 kB / 403.7 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.3967, allocations: 57.44 kB / 403.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.3968, allocations: 71.73 kB / 403.8 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.397, allocations: 71.64 kB / 403.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.397, allocations: 12 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.704e-05/0.3971, allocations: 16 kB / 403.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.851e-05/0.3971, allocations: 31.91 kB / 403.9 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.662e-05/0.3972, allocations: 67.67 kB / 404 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002901/0.3975, allocations: 164.5 kB / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.3975, allocations: 0 / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.3976, allocations: 0 / 404.1 MB, free: 5.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.3976, allocations: 0 / 404.1 MB, free: 5.438 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.0008243/0.3984, allocations: 446.5 kB / 404.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.3985, allocations: 8.031 kB / 404.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.3986, allocations: 16.84 kB / 404.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000341/0.399, allocations: 212 kB / 404.8 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.399, allocations: 8.609 kB / 404.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.399, allocations: 12.38 kB / 404.8 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.3993, allocations: 116.5 kB / 404.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3993, allocations: 4 kB / 404.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.573e-05/0.3994, allocations: 8 kB / 405 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.046e-06/0.3994, allocations: 3.938 kB / 405 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.3996, allocations: 80.66 kB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009771/0.4006, allocations: 0.6017 MB / 405.6 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003274/0.4009, allocations: 90.56 kB / 405.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.334e-05/0.401, allocations: 32.97 kB / 405.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.401, allocations: 0 / 405.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.4011, allocations: 38.5 kB / 405.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.4011, allocations: 0 / 405.8 MB, free: 3.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007253/0.4018, allocations: 251.4 kB / 406 MB, free: 3.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/0.4019, allocations: 55.34 kB / 406.1 MB, free: 3.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.402, allocations: 153.8 kB / 406.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.402, allocations: 25.7 kB / 406.3 MB, free: 3.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.852e-05/0.4021, allocations: 127.9 kB / 406.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.4022, allocations: 19.8 kB / 406.4 MB, free: 2.906 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.254e-05/0.4022, allocations: 21.62 kB / 406.4 MB, free: 2.879 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4023, allocations: 322.8 kB / 406.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.397e-05/0.4024, allocations: 19.98 kB / 406.8 MB, free: 2.535 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.022e-05/0.4025, allocations: 46.5 kB / 406.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001274/0.4026, allocations: 66.56 kB / 406.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4026, allocations: 0 / 406.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000293/0.4029, allocations: 142.3 kB / 407 MB, free: 2.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.403, allocations: 8 kB / 407 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.403, allocations: 3.984 kB / 407 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000206/0.4032, allocations: 40.83 kB / 407.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.405e-05/0.4033, allocations: 7.984 kB / 407.1 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001613/0.4049, allocations: 1.693 MB / 408.8 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.881e-05/0.405, allocations: 15.91 kB / 408.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.405, allocations: 0 / 408.8 MB, free: 352 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.0001105/0.4051, allocations: 121.8 kB / 408.9 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.4051, allocations: 11.84 kB / 408.9 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.844e-05/0.4052, allocations: 24.64 kB / 408.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.4052, allocations: 0 / 408.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.4052, allocations: 192 / 408.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.4052, allocations: 0 / 408.9 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.4055, allocations: 209.5 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4055, allocations: 4 kB / 409.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.821e-05/0.4055, allocations: 7.938 kB / 409.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001346/0.4057, allocations: 36.83 kB / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.4057, allocations: 4 kB / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001394/0.4071, allocations: 1.678 MB / 410.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4071, allocations: 4.031 kB / 410.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/0.4074, allocations: 216.2 kB / 411.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.261e-05/0.4075, allocations: 88.94 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.4075, allocations: 8 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.465e-05/0.4076, allocations: 4 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.4076, allocations: 3.984 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.4076, allocations: 4 kB / 411.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.721e-05/0.4077, allocations: 113.8 kB / 411.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4077, allocations: 0 / 411.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.4081, allocations: 35.91 kB / 411.3 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.0001508/0.4083, allocations: 113.3 kB / 411.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004279/0.4087, allocations: 194.5 kB / 411.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4087, allocations: 4.125 kB / 411.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.4089, allocations: 154.7 kB / 411.8 MB, free: 13.06 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.4092, allocations: 18.33 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.0006159/0.4098, allocations: 287.9 kB / 412.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.4102, allocations: 0.708 MB / 412.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.418e-05/0.4102, allocations: 4.438 kB / 412.8 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.4103, allocations: 15.44 kB / 412.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4103, allocations: 7.938 kB / 412.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Templates: time 0.005153/0.4154, allocations: 1.497 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