Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 173.9 kB / 25 MB, free: 8.34 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9734/0.9734, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 273.1 MB, free: 1.844 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.035e-05/2.189e-05, allocations: 2.312 kB / 273.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.006997/0.007019, allocations: 3.022 MB / 276.1 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.008725, allocations: 0.7477 MB / 276.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.008884, allocations: 7.938 kB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001775/0.009061, allocations: 55.44 kB / 276.9 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002044/0.009266, allocations: 110.9 kB / 277 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.00961, allocations: 103.8 kB / 277.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006494/0.0161, allocations: 425.9 kB / 277.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002111/0.01631, allocations: 79.62 kB / 277.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003958/0.01671, allocations: 231.5 kB / 277.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.01689, allocations: 127.6 kB / 278 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.949e-05/0.01695, allocations: 32 kB / 278 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.679e-05/0.01704, allocations: 36 kB / 278 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.317e-05/0.0171, allocations: 71.75 kB / 278.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.01723, allocations: 131.7 kB / 278.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000365/0.0176, allocations: 271 kB / 278.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.0176, allocations: 0 / 278.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.0176, allocations: 0 / 278.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.01761, allocations: 0 / 278.5 MB, free: 12.39 MB / 266.7 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.0008689/0.01847, allocations: 0.6597 MB / 279.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.01852, allocations: 8.031 kB / 279.2 MB, free: 11.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.01874, allocations: 68.69 kB / 279.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006393/0.02513, allocations: 239.9 kB / 279.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.02515, allocations: 20.97 kB / 279.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.644e-05/0.0252, allocations: 28.38 kB / 279.5 MB, free: 11.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004906/0.02569, allocations: 357.6 kB / 279.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.0257, allocations: 192 / 279.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.184e-05/0.02573, allocations: 12.38 kB / 279.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.02575, allocations: 11.94 kB / 279.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002719/0.02602, allocations: 103.8 kB / 280 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.02741, allocations: 0.8484 MB / 280.8 MB, free: 9.887 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.0278, allocations: 175.1 kB / 281 MB, free: 9.703 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.02792, allocations: 67.66 kB / 281.1 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.02794, allocations: 4 kB / 281.1 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.296e-05/0.02798, allocations: 41.33 kB / 281.1 MB, free: 9.578 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.934e-06/0.02798, allocations: 4 kB / 281.1 MB, free: 9.574 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007627/0.02874, allocations: 316.3 kB / 281.4 MB, free: 9.254 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.774e-05/0.02877, allocations: 55.41 kB / 281.5 MB, free: 9.188 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001723/0.02894, allocations: 284.3 kB / 281.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.02896, allocations: 29.7 kB / 281.8 MB, free: 8.859 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.813e-05/0.02905, allocations: 231.2 kB / 282 MB, free: 8.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.561e-05/0.02908, allocations: 75.38 kB / 282.1 MB, free: 8.555 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.29e-05/0.02913, allocations: 51.61 kB / 282.1 MB, free: 8.492 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.02925, allocations: 0.5078 MB / 282.6 MB, free: 7.973 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.753e-05/0.0293, allocations: 32.44 kB / 282.7 MB, free: 7.941 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.787e-05/0.02938, allocations: 75.91 kB / 282.7 MB, free: 7.855 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.02951, allocations: 105.7 kB / 282.8 MB, free: 7.742 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.02952, allocations: 0 / 282.8 MB, free: 7.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002788/0.0298, allocations: 249.3 kB / 283.1 MB, free: 7.484 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.02981, allocations: 4 kB / 283.1 MB, free: 7.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.02981, allocations: 4 kB / 283.1 MB, free: 7.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.03007, allocations: 99.23 kB / 283.2 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.28e-05/0.03016, allocations: 27.98 kB / 283.2 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001551/0.03171, allocations: 3.692 MB / 286.9 MB, free: 3.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.505e-05/0.03179, allocations: 19.89 kB / 286.9 MB, free: 3.391 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.0318, allocations: 11.98 kB / 286.9 MB, free: 3.379 MB / 266.7 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 8.859e-05/0.03189, allocations: 168.7 kB / 287.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.03192, allocations: 31.86 kB / 287.1 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.262e-05/0.03194, allocations: 34.22 kB / 287.2 MB, free: 3.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.03195, allocations: 4 kB / 287.2 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.03195, allocations: 4 kB / 287.2 MB, free: 3.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.03196, allocations: 11.95 kB / 287.2 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.03244, allocations: 0.5514 MB / 287.7 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.03244, allocations: 0 / 287.7 MB, free: 2.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-05/0.03249, allocations: 19.98 kB / 287.8 MB, free: 2.492 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001748/0.03267, allocations: 95.3 kB / 287.9 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.03268, allocations: 8 kB / 287.9 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.03416, allocations: 3.673 MB / 291.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.03416, allocations: 0 / 291.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.03446, allocations: 367.5 kB / 291.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.03448, allocations: 27.78 kB / 291.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.0345, allocations: 4.188 kB / 291.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.03461, allocations: 36.05 kB / 292 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.922e-05/0.03468, allocations: 23.89 kB / 292 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.789e-06/0.03469, allocations: 4 kB / 292 MB, free: 13.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001063/0.0348, allocations: 205.1 kB / 292.2 MB, free: 13.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.0348, allocations: 0 / 292.2 MB, free: 13.78 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002299/0.03503, allocations: 95.84 kB / 292.3 MB, free: 13.68 MB / 282.7 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 9.148e-05/0.03512, allocations: 107.2 kB / 292.4 MB, free: 13.57 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003908/0.03551, allocations: 489.2 kB / 292.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.03551, allocations: 0 / 292.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.03571, allocations: 423.3 kB / 293.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.03594, allocations: 47.69 kB / 293.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007986/0.03674, allocations: 489.1 kB / 293.8 MB, free: 12.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.979e-05/0.03679, allocations: 96.3 kB / 293.9 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.018e-05/0.03685, allocations: 25.94 kB / 293.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.627e-05/0.03689, allocations: 16.5 kB / 293.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.03689, allocations: 0 / 293.9 MB, free: 11.91 MB / 282.7 MB Notification: Performance of Templates: time 0.004998/0.04189, allocations: 3.617 MB / 297.6 MB, free: 8.344 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9804620400536805]