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.001789/0.001789, allocations: 110.5 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.001981/0.001981, allocations: 187 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.562/1.562, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001116/0.001116, allocations: 47.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08986/0.09098, allocations: 46.61 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003642/0.09467, allocations: 2.964 MB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.09571, allocations: 0.7251 MB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.09585, allocations: 7.938 kB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.09602, allocations: 55.5 kB / 378.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.09617, allocations: 99.05 kB / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002441/0.09642, allocations: 91.88 kB / 379.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003676/0.0968, allocations: 414 kB / 379.5 MB, free: 204 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.09706, allocations: 111.1 kB / 379.6 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2385/0.3355, allocations: 143.4 kB / 379.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003455/0.3359, allocations: 162.3 kB / 379.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.568e-05/0.336, allocations: 31.75 kB / 379.9 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.471e-05/0.3361, allocations: 34.03 kB / 380 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.767e-05/0.3362, allocations: 74.19 kB / 380 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.3363, allocations: 180.9 kB / 380.2 MB, free: 9.797 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004528/0.3368, allocations: 388 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3368, allocations: 0 / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.492e-05/0.3368, allocations: 0 / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3368, allocations: 0 / 380.6 MB, free: 9.746 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.0009061/0.3378, allocations: 0.6322 MB / 381.2 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3378, allocations: 13.83 kB / 381.2 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.211e-05/0.3379, allocations: 40.8 kB / 381.3 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.3382, allocations: 284.4 kB / 381.5 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.205e-05/0.3382, allocations: 21.19 kB / 381.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.157e-05/0.3383, allocations: 24.62 kB / 381.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005186/0.3388, allocations: 261.9 kB / 381.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.3388, allocations: 4.844 kB / 381.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.3389, allocations: 10 kB / 381.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.3389, allocations: 5.5 kB / 381.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005699/0.3395, allocations: 217.7 kB / 382.1 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.3413, allocations: 0.9608 MB / 383 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005661/0.3419, allocations: 300.9 kB / 383.3 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.3421, allocations: 109.1 kB / 383.4 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.3422, allocations: 2.078 kB / 383.4 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.3422, allocations: 38.59 kB / 383.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.3422, allocations: 0 / 383.5 MB, free: 8.422 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001359/0.3436, allocations: 0.5572 MB / 384 MB, free: 8.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.3436, allocations: 57.84 kB / 384.1 MB, free: 8.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.3439, allocations: 259 kB / 384.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/0.344, allocations: 31.67 kB / 384.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.3441, allocations: 184 kB / 384.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.026e-05/0.3441, allocations: 71.7 kB / 384.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.13e-05/0.3442, allocations: 42.52 kB / 384.7 MB, free: 7.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.3443, allocations: 340.4 kB / 385 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002022/0.3445, allocations: 73.08 kB / 385.1 MB, free: 7.457 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/0.3448, allocations: 109.1 kB / 385.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004793/0.3453, allocations: 193.6 kB / 385.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.3453, allocations: 1.188 kB / 385.4 MB, free: 7.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005999/0.3459, allocations: 332.7 kB / 385.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.3459, allocations: 5.719 kB / 385.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.3459, allocations: 1.844 kB / 385.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002765/0.3462, allocations: 76.39 kB / 385.8 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3464, allocations: 37.11 kB / 385.8 MB, free: 7.273 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.3484, allocations: 3.041 MB / 388.9 MB, free: 4.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.3486, allocations: 38.53 kB / 388.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.3486, allocations: 9.469 kB / 388.9 MB, free: 4.305 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.0001334/0.3488, allocations: 134.6 kB / 389 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.318e-05/0.3488, allocations: 30.59 kB / 389.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.557e-05/0.3489, allocations: 29.84 kB / 389.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3489, allocations: 6.438 kB / 389.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.3489, allocations: 2.344 kB / 389.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3489, allocations: 6.281 kB / 389.1 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.35, allocations: 0.6795 MB / 389.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.35, allocations: 0 / 389.8 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.3501, allocations: 35.98 kB / 389.8 MB, free: 3.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001686/0.3503, allocations: 69.84 kB / 389.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.3503, allocations: 6.125 kB / 389.9 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/0.352, allocations: 3.046 MB / 392.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.352, allocations: 0.9375 kB / 392.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005612/0.3525, allocations: 380.5 kB / 393.3 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.865e-05/0.3526, allocations: 106.8 kB / 393.4 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.3526, allocations: 6.078 kB / 393.4 MB, free: 344 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.3529, allocations: 30.38 kB / 393.5 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.699e-05/0.353, allocations: 26.41 kB / 393.5 MB, free: 332 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.353, allocations: 8.469 kB / 393.5 MB, free: 328 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.3532, allocations: 187.1 kB / 393.7 MB, free: 216 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3532, allocations: 0 / 393.7 MB, free: 216 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004703/0.3537, allocations: 91.28 kB / 393.8 MB, free: 200 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.0001286/0.3538, allocations: 111.2 kB / 393.9 MB, free: 96 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008022/0.3546, allocations: 454 kB / 394.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.3547, allocations: 5.25 kB / 394.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004597/0.3551, allocations: 343.8 kB / 394.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.3556, allocations: 47.36 kB / 394.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/0.3567, allocations: 0.4938 MB / 395.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.3571, allocations: 0.7637 MB / 396 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001131/0.3572, allocations: 26.11 kB / 396 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.862e-05/0.3573, allocations: 18.45 kB / 396 MB, free: 14.48 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3573, allocations: 1.125 kB / 396 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Templates: time 0.009256/0.3666, allocations: 3.742 MB / 399.7 MB, free: 14.23 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