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.001287/0.001287, allocations: 98.05 kB / 18.39 MB, free: 4.664 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.001316/0.001316, allocations: 190.5 kB / 19.33 MB, free: 3.738 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.285/1.285, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001407/0.001407, allocations: 51.94 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09917/0.1006, allocations: 46.61 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004746/0.1054, allocations: 2.961 MB / 378.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.107, allocations: 0.7291 MB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003348/0.1074, allocations: 4 kB / 379.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.1077, allocations: 59.38 kB / 379.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003525/0.1081, allocations: 99.05 kB / 379.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003356/0.1084, allocations: 87.88 kB / 379.7 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005638/0.109, allocations: 414.1 kB / 380.2 MB, free: 212 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.1093, allocations: 119 kB / 380.3 MB, free: 92 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2178/0.327, allocations: 138.1 kB / 380.4 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.3274, allocations: 166.2 kB / 380.6 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.3275, allocations: 32 kB / 380.6 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.3276, allocations: 33 kB / 380.6 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.371e-05/0.3277, allocations: 76.97 kB / 380.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.3279, allocations: 177.5 kB / 380.9 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004982/0.3284, allocations: 387 kB / 381.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3284, allocations: 3.438 kB / 381.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3284, allocations: 0 / 381.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.3284, allocations: 0.5156 kB / 381.3 MB, free: 9.727 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.00111/0.3296, allocations: 0.6279 MB / 381.9 MB, free: 9.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.3296, allocations: 12.86 kB / 381.9 MB, free: 9.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.3297, allocations: 38.92 kB / 381.9 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.3301, allocations: 289.8 kB / 382.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.3301, allocations: 20.41 kB / 382.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.061e-05/0.3302, allocations: 25.16 kB / 382.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005494/0.3307, allocations: 260 kB / 382.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.3308, allocations: 3.938 kB / 382.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.06e-05/0.3308, allocations: 13 kB / 382.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.3308, allocations: 8.734 kB / 382.5 MB, free: 8.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005478/0.3314, allocations: 217.8 kB / 382.8 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001692/0.3331, allocations: 0.9617 MB / 383.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004681/0.3336, allocations: 293.2 kB / 384 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.3338, allocations: 108.3 kB / 384.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.3338, allocations: 3.312 kB / 384.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.919e-05/0.3338, allocations: 39.69 kB / 384.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.3339, allocations: 0 / 384.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00122/0.3351, allocations: 0.5547 MB / 384.7 MB, free: 8.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.3351, allocations: 57.62 kB / 384.8 MB, free: 8.074 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.3354, allocations: 258.3 kB / 385 MB, free: 7.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.3354, allocations: 33.58 kB / 385 MB, free: 7.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.243e-05/0.3355, allocations: 183.2 kB / 385.2 MB, free: 7.812 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.085e-05/0.3355, allocations: 70.2 kB / 385.3 MB, free: 7.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.988e-05/0.3356, allocations: 51.08 kB / 385.3 MB, free: 7.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.829e-05/0.3357, allocations: 332 kB / 385.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.3359, allocations: 77.62 kB / 385.7 MB, free: 7.438 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.3361, allocations: 108.8 kB / 385.9 MB, free: 7.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.3365, allocations: 197 kB / 386 MB, free: 7.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3365, allocations: 0 / 386 MB, free: 7.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006462/0.3371, allocations: 323.1 kB / 386.4 MB, free: 7.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3371, allocations: 6.375 kB / 386.4 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3372, allocations: 4.547 kB / 386.4 MB, free: 7.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002652/0.3374, allocations: 77.41 kB / 386.4 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001863/0.3376, allocations: 39 kB / 386.5 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001854/0.3395, allocations: 3.048 MB / 389.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.3397, allocations: 31.86 kB / 389.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.3397, allocations: 5.438 kB / 389.6 MB, free: 4.281 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.0001251/0.3399, allocations: 141.7 kB / 389.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.3399, allocations: 29.97 kB / 389.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.203e-05/0.34, allocations: 27.06 kB / 389.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.34, allocations: 2.406 kB / 389.8 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.34, allocations: 10 kB / 389.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.34, allocations: 1.359 kB / 389.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009717/0.341, allocations: 0.684 MB / 390.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.341, allocations: 4 kB / 390.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001278/0.3412, allocations: 23.91 kB / 390.5 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001849/0.3413, allocations: 81.44 kB / 390.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.3414, allocations: 1.094 kB / 390.6 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001638/0.343, allocations: 3.038 MB / 393.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.343, allocations: 1.297 kB / 393.6 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.3436, allocations: 386.1 kB / 394 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.3437, allocations: 106.1 kB / 394.1 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.081e-05/0.3437, allocations: 0.9375 kB / 394.1 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.344, allocations: 34.38 kB / 394.1 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.403e-05/0.344, allocations: 24.25 kB / 394.1 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.3441, allocations: 12.53 kB / 394.2 MB, free: 304 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.3442, allocations: 187.6 kB / 394.3 MB, free: 192 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3442, allocations: 0 / 394.3 MB, free: 192 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003924/0.3446, allocations: 90.62 kB / 394.4 MB, free: 176 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.0001245/0.3448, allocations: 113.8 kB / 394.5 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007815/0.3456, allocations: 446.1 kB / 395 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3456, allocations: 4.062 kB / 395 MB, free: 15.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004418/0.346, allocations: 353.7 kB / 395.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.3464, allocations: 48.64 kB / 395.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009052/0.3473, allocations: 0.5167 MB / 395.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.3477, allocations: 0.764 MB / 396.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.612e-05/0.3478, allocations: 21.36 kB / 396.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of SimCode: time 1.213e-06/0.3478, allocations: 0 / 396.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of Templates: time 0.009267/0.3571, allocations: 5.625 MB / 402.3 MB, free: 13.39 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