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.001266/0.001266, allocations: 111.9 kB / 18.4 MB, free: 4.566 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.001205/0.001205, allocations: 190.3 kB / 19.33 MB, free: 3.648 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.653/1.653, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001372/0.001372, allocations: 51.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1022, allocations: 46.61 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004477/0.1068, allocations: 2.965 MB / 378.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.1082, allocations: 0.7213 MB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002974/0.1085, allocations: 7.938 kB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002437/0.1088, allocations: 55.44 kB / 379.6 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003117/0.1092, allocations: 103 kB / 379.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.1095, allocations: 91.86 kB / 379.8 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/0.1101, allocations: 418 kB / 380.2 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.1103, allocations: 107.1 kB / 380.3 MB, free: 100 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2216/0.332, allocations: 145.8 kB / 380.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003062/0.3323, allocations: 162.3 kB / 380.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.886e-05/0.3324, allocations: 31.72 kB / 380.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.88e-05/0.3325, allocations: 32.81 kB / 380.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.892e-05/0.3326, allocations: 76.98 kB / 380.7 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001852/0.3327, allocations: 178.7 kB / 380.9 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004822/0.3332, allocations: 389.8 kB / 381.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3332, allocations: 0 / 381.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3333, allocations: 0 / 381.3 MB, free: 9.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.3333, allocations: 1.531 kB / 381.3 MB, free: 9.758 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.0009964/0.3343, allocations: 0.6312 MB / 381.9 MB, free: 9.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.3343, allocations: 13.16 kB / 381.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.49e-05/0.3344, allocations: 39.19 kB / 381.9 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.3348, allocations: 283.7 kB / 382.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.3349, allocations: 21.38 kB / 382.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.211e-05/0.3349, allocations: 25.06 kB / 382.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.3354, allocations: 258.9 kB / 382.5 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.3355, allocations: 5.312 kB / 382.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.024e-05/0.3355, allocations: 15.75 kB / 382.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.325e-06/0.3355, allocations: 6.875 kB / 382.5 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000539/0.3361, allocations: 212.9 kB / 382.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.3378, allocations: 0.9639 MB / 383.7 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000535/0.3384, allocations: 300.1 kB / 384 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.3386, allocations: 111 kB / 384.1 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.3386, allocations: 1.281 kB / 384.1 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.804e-05/0.3387, allocations: 37.95 kB / 384.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.3387, allocations: 0 / 384.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001289/0.34, allocations: 0.5527 MB / 384.7 MB, free: 8.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.449e-05/0.34, allocations: 61.14 kB / 384.8 MB, free: 8.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002602/0.3403, allocations: 260.1 kB / 385 MB, free: 7.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.3403, allocations: 28.3 kB / 385.1 MB, free: 7.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.679e-05/0.3404, allocations: 185.8 kB / 385.2 MB, free: 7.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.3405, allocations: 72.86 kB / 385.3 MB, free: 7.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-05/0.3405, allocations: 43.7 kB / 385.3 MB, free: 7.777 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.776e-05/0.3406, allocations: 335 kB / 385.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.3408, allocations: 77.59 kB / 385.8 MB, free: 7.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.341, allocations: 112.1 kB / 385.9 MB, free: 7.438 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.3414, allocations: 191.5 kB / 386 MB, free: 7.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3414, allocations: 0.875 kB / 386 MB, free: 7.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000619/0.3421, allocations: 327 kB / 386.4 MB, free: 7.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3421, allocations: 4.719 kB / 386.4 MB, free: 7.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.3421, allocations: 5.828 kB / 386.4 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002982/0.3424, allocations: 77.44 kB / 386.5 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.3426, allocations: 41.05 kB / 386.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/0.3444, allocations: 3.044 MB / 389.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002302/0.3446, allocations: 31.94 kB / 389.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.3447, allocations: 10.25 kB / 389.6 MB, free: 4.316 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.0001575/0.3448, allocations: 134.1 kB / 389.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.832e-05/0.3449, allocations: 30.16 kB / 389.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.875e-05/0.345, allocations: 31.45 kB / 389.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.345, allocations: 9.375 kB / 389.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.345, allocations: 3.297 kB / 389.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.345, allocations: 1.531 kB / 389.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.346, allocations: 0.6836 MB / 390.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.346, allocations: 0 / 390.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.3462, allocations: 29.05 kB / 390.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002522/0.3464, allocations: 78.5 kB / 390.6 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.3465, allocations: 5.688 kB / 390.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.3481, allocations: 3.037 MB / 393.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3482, allocations: 0 / 393.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.3488, allocations: 385.4 kB / 394 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.3488, allocations: 105.1 kB / 394.1 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.3489, allocations: 6.625 kB / 394.1 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.3491, allocations: 30.75 kB / 394.1 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.784e-05/0.3492, allocations: 18.5 kB / 394.1 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.3492, allocations: 13.03 kB / 394.2 MB, free: 340 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.3494, allocations: 187.5 kB / 394.3 MB, free: 228 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3494, allocations: 0 / 394.3 MB, free: 228 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004284/0.3499, allocations: 94.72 kB / 394.4 MB, free: 208 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.0001255/0.35, allocations: 111 kB / 394.5 MB, free: 108 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008798/0.3509, allocations: 455.1 kB / 395 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3509, allocations: 0 / 395 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004689/0.3514, allocations: 344.8 kB / 395.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3518, allocations: 53.33 kB / 395.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009811/0.3528, allocations: 0.5195 MB / 395.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/0.3532, allocations: 0.7649 MB / 396.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.713e-05/0.3533, allocations: 20.59 kB / 396.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3533, allocations: 0 / 396.7 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Templates: time 0.008997/0.3623, allocations: 5.632 MB / 402.3 MB, free: 13.41 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/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