Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001522/0.001522, allocations: 115.5 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001602/0.001602, allocations: 210.8 kB / 19.41 MB, free: 3.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.402/1.402, allocations: 227.7 MB / 247.9 MB, free: 10.22 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 55.91 kB / 359.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2372, allocations: 50.55 MB / 410.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004311/0.2415, allocations: 3.029 MB / 413.2 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2429, allocations: 0.7478 MB / 414 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.243, allocations: 4 kB / 414 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001768/0.2432, allocations: 59.44 kB / 414.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001879/0.2434, allocations: 107 kB / 414.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000316/0.2437, allocations: 91.88 kB / 414.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004598/0.2442, allocations: 422.1 kB / 414.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001791/0.2444, allocations: 75.11 kB / 414.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002602/0.2446, allocations: 159.4 kB / 414.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.2448, allocations: 159.3 kB / 415 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.124e-05/0.2449, allocations: 36 kB / 415.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.738e-05/0.2449, allocations: 47.94 kB / 415.1 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.245, allocations: 75.69 kB / 415.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2452, allocations: 179.1 kB / 415.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004267/0.2456, allocations: 390.2 kB / 415.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2456, allocations: 0 / 415.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.2456, allocations: 0 / 415.8 MB, free: 11.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2456, allocations: 0 / 415.8 MB, free: 11.92 MB / 334.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.001021/0.2466, allocations: 0.635 MB / 416.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.2467, allocations: 12.03 kB / 416.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001873/0.2468, allocations: 56.62 kB / 416.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.2473, allocations: 287.7 kB / 416.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.2473, allocations: 20.94 kB / 416.8 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.18e-05/0.2473, allocations: 24.38 kB / 416.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005173/0.2478, allocations: 265.2 kB / 417 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2479, allocations: 3.984 kB / 417 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.2479, allocations: 12 kB / 417.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.353e-06/0.2479, allocations: 4 kB / 417.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004834/0.2484, allocations: 222.1 kB / 417.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.25, allocations: 0.9641 MB / 418.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.2505, allocations: 287.7 kB / 418.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.2508, allocations: 95.56 kB / 418.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.2508, allocations: 0 / 418.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.2508, allocations: 42.56 kB / 418.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.072e-06/0.2508, allocations: 0 / 418.7 MB, free: 8.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001273/0.2521, allocations: 0.5573 MB / 419.2 MB, free: 8.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.2521, allocations: 55.41 kB / 419.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002666/0.2524, allocations: 258.6 kB / 419.5 MB, free: 7.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.2524, allocations: 29.7 kB / 419.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.2525, allocations: 180.2 kB / 419.7 MB, free: 7.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.056e-05/0.2526, allocations: 79.36 kB / 419.8 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.121e-05/0.2527, allocations: 49.89 kB / 419.9 MB, free: 7.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.2528, allocations: 338.8 kB / 420.2 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.253, allocations: 80.42 kB / 420.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002158/0.2532, allocations: 107.5 kB / 420.4 MB, free: 7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003921/0.2536, allocations: 187.1 kB / 420.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2536, allocations: 0 / 420.6 MB, free: 6.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006476/0.2543, allocations: 318.8 kB / 420.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2543, allocations: 11.5 kB / 420.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.2543, allocations: 8 kB / 420.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/0.2546, allocations: 81.59 kB / 421 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.2548, allocations: 35.92 kB / 421 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002663/0.2574, allocations: 3.052 MB / 424 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002018/0.2576, allocations: 27.91 kB / 424.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.2577, allocations: 8.062 kB / 424.1 MB, free: 2.984 MB / 334.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.0001639/0.2578, allocations: 145.7 kB / 424.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.2579, allocations: 39.69 kB / 424.3 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.236e-05/0.258, allocations: 30.17 kB / 424.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.258, allocations: 4 kB / 424.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.258, allocations: 0 / 424.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.258, allocations: 0 / 424.3 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.259, allocations: 0.6826 MB / 425 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.259, allocations: 0 / 425 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/0.2592, allocations: 31.91 kB / 425 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/0.2594, allocations: 81.8 kB / 425.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.2594, allocations: 0 / 425.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.2619, allocations: 3.044 MB / 428.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2619, allocations: 0 / 428.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006612/0.2626, allocations: 385.5 kB / 428.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.36e-05/0.2627, allocations: 96.91 kB / 428.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.2627, allocations: 11.98 kB / 428.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.2629, allocations: 31.98 kB / 428.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.149e-05/0.263, allocations: 23.91 kB / 428.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.263, allocations: 4 kB / 428.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.2632, allocations: 190 kB / 428.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2632, allocations: 0 / 428.9 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003851/0.2636, allocations: 95.89 kB / 429 MB, free: 13.7 MB / 350.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.0001372/0.2637, allocations: 111.2 kB / 429.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007814/0.2645, allocations: 432.3 kB / 429.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2645, allocations: 0 / 429.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004479/0.265, allocations: 349.2 kB / 429.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.2653, allocations: 52.52 kB / 429.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008404/0.2662, allocations: 0.504 MB / 430.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.2666, allocations: 0.7639 MB / 431.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.2667, allocations: 26.28 kB / 431.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.202e-05/0.2667, allocations: 19.44 kB / 431.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2667, allocations: 0 / 431.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of Templates: time 0.007914/0.2746, allocations: 3.759 MB / 435 MB, free: 7.621 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches