Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 109.2 kB / 17.73 MB, free: 5.324 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.001603/0.001603, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.521/1.521, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001185/0.001185, allocations: 55.92 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1067, allocations: 46.61 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004177/0.1109, allocations: 2.964 MB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.1126, allocations: 0.7174 MB / 378.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.1128, allocations: 8 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002062/0.1131, allocations: 55.44 kB / 378.9 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.1133, allocations: 111 kB / 379 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002886/0.1136, allocations: 87.88 kB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.114, allocations: 422 kB / 379.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.1143, allocations: 103.1 kB / 379.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2916/0.4059, allocations: 143.3 kB / 379.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.4064, allocations: 163.8 kB / 379.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.4065, allocations: 32.91 kB / 379.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.04e-05/0.4066, allocations: 31.66 kB / 380 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.992e-05/0.4067, allocations: 78.09 kB / 380 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.4069, allocations: 171.9 kB / 380.2 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007017/0.4076, allocations: 386.3 kB / 380.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.299e-05/0.4077, allocations: 1.641 kB / 380.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4077, allocations: 3.938 kB / 380.6 MB, free: 9.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.4077, allocations: 0 / 380.6 MB, free: 9.73 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001207/0.4089, allocations: 0.6333 MB / 381.2 MB, free: 9.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.409, allocations: 13.48 kB / 381.2 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.675e-05/0.4091, allocations: 43.47 kB / 381.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.4095, allocations: 286.5 kB / 381.6 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.4095, allocations: 20.69 kB / 381.6 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.4096, allocations: 24 kB / 381.6 MB, free: 9.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.4102, allocations: 259.6 kB / 381.9 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4103, allocations: 3.938 kB / 381.9 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.4103, allocations: 13.56 kB / 381.9 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.5e-05/0.4103, allocations: 6.875 kB / 381.9 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005969/0.4109, allocations: 218.2 kB / 382.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.4131, allocations: 0.9589 MB / 383 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.4137, allocations: 298.9 kB / 383.3 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.414, allocations: 110.6 kB / 383.4 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.414, allocations: 2.219 kB / 383.4 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.414, allocations: 36.61 kB / 383.5 MB, free: 8.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.354e-06/0.4141, allocations: 0 / 383.5 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001473/0.4155, allocations: 0.5554 MB / 384 MB, free: 8.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.4156, allocations: 57.78 kB / 384.1 MB, free: 8.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.4159, allocations: 261.5 kB / 384.4 MB, free: 7.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.4159, allocations: 30.73 kB / 384.4 MB, free: 7.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.416, allocations: 184.2 kB / 384.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.4161, allocations: 75.91 kB / 384.6 MB, free: 7.766 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.153e-05/0.4162, allocations: 43.03 kB / 384.7 MB, free: 7.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.914e-05/0.4163, allocations: 332 kB / 385 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.4165, allocations: 78.58 kB / 385.1 MB, free: 7.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.4167, allocations: 106.5 kB / 385.2 MB, free: 7.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.4172, allocations: 197 kB / 385.4 MB, free: 7.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.4172, allocations: 0 / 385.4 MB, free: 7.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006999/0.4179, allocations: 326.7 kB / 385.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.4179, allocations: 6 kB / 385.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.4179, allocations: 0 / 385.7 MB, free: 7.297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003261/0.4183, allocations: 76.31 kB / 385.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.4185, allocations: 46.06 kB / 385.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.4206, allocations: 3.045 MB / 388.9 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.4209, allocations: 32.39 kB / 388.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.278e-05/0.421, allocations: 9.359 kB / 388.9 MB, free: 4.293 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001882/0.4212, allocations: 138.2 kB / 389 MB, free: 4.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.4212, allocations: 29.78 kB / 389.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.519e-05/0.4213, allocations: 30.7 kB / 389.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4213, allocations: 7.25 kB / 389.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.4213, allocations: 1.891 kB / 389.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.4213, allocations: 2.453 kB / 389.1 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.4226, allocations: 0.6826 MB / 389.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.4226, allocations: 0 / 389.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.4228, allocations: 24.28 kB / 389.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002522/0.423, allocations: 78.33 kB / 389.9 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.4231, allocations: 5.125 kB / 389.9 MB, free: 3.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002047/0.4251, allocations: 3.04 MB / 392.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4251, allocations: 1.094 kB / 392.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007079/0.4259, allocations: 383.8 kB / 393.3 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/0.4259, allocations: 110.7 kB / 393.4 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.152e-05/0.426, allocations: 5.703 kB / 393.4 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.4263, allocations: 30.94 kB / 393.5 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.4263, allocations: 18.42 kB / 393.5 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.4264, allocations: 10.39 kB / 393.5 MB, free: 324 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002009/0.4266, allocations: 189.5 kB / 393.7 MB, free: 212 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4266, allocations: 0 / 393.7 MB, free: 212 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004844/0.4271, allocations: 95.12 kB / 393.8 MB, free: 192 kB / 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001509/0.4272, allocations: 111.1 kB / 393.9 MB, free: 88 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.4282, allocations: 458.4 kB / 394.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.4282, allocations: 1 kB / 394.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000497/0.4287, allocations: 344.2 kB / 394.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004473/0.4292, allocations: 53.33 kB / 394.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.4304, allocations: 496.7 kB / 395.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.4309, allocations: 0.7679 MB / 396 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.4311, allocations: 21.94 kB / 396 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.962e-05/0.4311, allocations: 19.16 kB / 396 MB, free: 14.48 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4311, allocations: 0 / 396 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Templates: time 0.01175/0.4429, allocations: 3.752 MB / 399.8 MB, free: 14.21 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches