Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001573/0.001573, allocations: 109.9 kB / 18.3 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001845/0.001845, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 61.88 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09141, allocations: 50.54 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003468/0.09491, allocations: 2.145 MB / 360.3 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.09608, allocations: 0.6195 MB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001453/0.09625, allocations: 3.938 kB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.09643, allocations: 23.78 kB / 360.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.09654, allocations: 35.64 kB / 361 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.09684, allocations: 55.88 kB / 361 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.09709, allocations: 163.2 kB / 361.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001555/0.09725, allocations: 61.45 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.09743, allocations: 67.77 kB / 361.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.09757, allocations: 67.64 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.235e-05/0.0976, allocations: 12 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.32e-05/0.0977, allocations: 20 kB / 361.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.475e-05/0.09775, allocations: 35.84 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.951e-05/0.09784, allocations: 67.67 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002463/0.0981, allocations: 163.7 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.09811, allocations: 0 / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.09812, allocations: 4 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.09813, allocations: 0 / 361.7 MB, free: 10.57 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005947/0.09873, allocations: 455.1 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.09878, allocations: 8.031 kB / 362.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.09899, allocations: 28.73 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002045/0.09921, allocations: 204 kB / 362.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.09923, allocations: 8.609 kB / 362.4 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.063e-05/0.09926, allocations: 16.38 kB / 362.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.0995, allocations: 121.5 kB / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.09951, allocations: 0 / 362.5 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.09954, allocations: 7.938 kB / 362.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.09955, allocations: 4 kB / 362.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.09974, allocations: 76.67 kB / 362.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008475/0.1006, allocations: 0.6057 MB / 363.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.1009, allocations: 86.56 kB / 363.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.712e-05/0.101, allocations: 32.97 kB / 363.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.101, allocations: 0 / 363.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.101, allocations: 38.56 kB / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.001e-06/0.101, allocations: 0 / 363.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006655/0.1017, allocations: 251.4 kB / 363.6 MB, free: 8.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.1018, allocations: 55.34 kB / 363.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.1019, allocations: 153.8 kB / 363.8 MB, free: 8.203 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.1019, allocations: 29.64 kB / 363.8 MB, free: 8.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.102, allocations: 131.9 kB / 364 MB, free: 8.035 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.419e-05/0.102, allocations: 15.69 kB / 364 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.1021, allocations: 33.62 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1022, allocations: 318.8 kB / 364.3 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.729e-05/0.1023, allocations: 19.98 kB / 364.3 MB, free: 7.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.458e-05/0.1023, allocations: 46.5 kB / 364.4 MB, free: 7.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.1025, allocations: 70.56 kB / 364.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1025, allocations: 0 / 364.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002921/0.1028, allocations: 142.2 kB / 364.6 MB, free: 7.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.1028, allocations: 6.812 kB / 364.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1028, allocations: 4 kB / 364.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001922/0.103, allocations: 36.91 kB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.712e-05/0.1031, allocations: 12.23 kB / 364.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.1048, allocations: 1.685 MB / 366.3 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.004e-05/0.1049, allocations: 12 kB / 366.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.467e-06/0.105, allocations: 4 kB / 366.3 MB, free: 5.461 MB / 302.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.0001226/0.1051, allocations: 129.7 kB / 366.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.753e-05/0.1051, allocations: 15.84 kB / 366.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.816e-05/0.1052, allocations: 12.72 kB / 366.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1052, allocations: 0 / 366.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.1052, allocations: 4 kB / 366.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.1052, allocations: 0 / 366.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.1054, allocations: 209.5 kB / 366.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1054, allocations: 4 kB / 366.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.824e-05/0.1055, allocations: 7.984 kB / 366.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000123/0.1056, allocations: 32.84 kB / 366.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.1056, allocations: 128 / 366.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.107, allocations: 1.677 MB / 368.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.107, allocations: 4.062 kB / 368.4 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.1073, allocations: 220.2 kB / 368.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.705e-05/0.1074, allocations: 81.02 kB / 368.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.1074, allocations: 4.188 kB / 368.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.601e-05/0.1075, allocations: 8 kB / 368.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.644e-05/0.1075, allocations: 11.92 kB / 368.8 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.1076, allocations: 4 kB / 368.8 MB, free: 2.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.1076, allocations: 122.5 kB / 368.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1076, allocations: 0 / 368.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003533/0.108, allocations: 43.84 kB / 368.9 MB, free: 2.652 MB / 302.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.0001125/0.1081, allocations: 99.25 kB / 369 MB, free: 2.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003718/0.1085, allocations: 194.5 kB / 369.2 MB, free: 2.344 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.1085, allocations: 0 / 369.2 MB, free: 2.344 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001907/0.1087, allocations: 154.9 kB / 369.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.109, allocations: 16.11 kB / 369.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005257/0.1095, allocations: 325.7 kB / 369.7 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1098, allocations: 0.708 MB / 370.4 MB, free: 1.078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.1098, allocations: 11.44 kB / 370.4 MB, free: 1.066 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1098, allocations: 0 / 370.4 MB, free: 1.066 MB / 302.1 MB Notification: Performance of Templates: time 0.1422/0.2521, allocations: 1.916 MB / 372.3 MB, free: 19.5 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches