Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001527/0.001527, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 226.6 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000782/0.0007817, allocations: 100.6 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002188/0.0002189, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2182, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002186/0.2204, allocations: 2.563 MB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008597/0.2213, allocations: 0.7017 MB / 411.3 MB, free: 24.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.2214, allocations: 8 kB / 411.3 MB, free: 24.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.2216, allocations: 35.69 kB / 411.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.2217, allocations: 92.27 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002239/0.2219, allocations: 70.62 kB / 411.5 MB, free: 24.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002561/0.2222, allocations: 374.2 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.2224, allocations: 92.5 kB / 412 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.2226, allocations: 135.5 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.2227, allocations: 143.4 kB / 412.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.2227, allocations: 19.94 kB / 412.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.145e-05/0.2228, allocations: 23.98 kB / 412.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.841e-05/0.2229, allocations: 55.75 kB / 412.3 MB, free: 23.42 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.223, allocations: 173 kB / 412.5 MB, free: 23.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.2232, allocations: 280.2 kB / 412.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2232, allocations: 0 / 412.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.2232, allocations: 3.984 kB / 412.8 MB, free: 22.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.2232, allocations: 0 / 412.8 MB, free: 22.97 MB / 298.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.0007274/0.2239, allocations: 0.5887 MB / 413.4 MB, free: 22.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.224, allocations: 12.03 kB / 413.4 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001646/0.2242, allocations: 48.55 kB / 413.4 MB, free: 22.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.2244, allocations: 267.6 kB / 413.7 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.2244, allocations: 24.94 kB / 413.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.2245, allocations: 32.3 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.2249, allocations: 269.2 kB / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.225, allocations: 0 / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.866e-05/0.225, allocations: 12 kB / 414 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.225, allocations: 8 kB / 414 MB, free: 21.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004283/0.2254, allocations: 234.1 kB / 414.3 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.2268, allocations: 0.987 MB / 415.2 MB, free: 20.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004123/0.2272, allocations: 317.8 kB / 415.6 MB, free: 20.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.2274, allocations: 108.8 kB / 415.7 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.2274, allocations: 4 kB / 415.7 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.2275, allocations: 42.56 kB / 415.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.2275, allocations: 0 / 415.7 MB, free: 19.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001075/0.2286, allocations: 0.5826 MB / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.148e-05/0.2286, allocations: 59.34 kB / 416.3 MB, free: 19.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.2288, allocations: 262.6 kB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.2288, allocations: 33.64 kB / 416.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.741e-05/0.2289, allocations: 179.9 kB / 416.8 MB, free: 18.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.2289, allocations: 74.89 kB / 416.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.229, allocations: 4 kB / 416.9 MB, free: 18.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.49e-05/0.229, allocations: 338.8 kB / 417.2 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.2292, allocations: 88.36 kB / 417.3 MB, free: 18.15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.2294, allocations: 111.5 kB / 417.4 MB, free: 18.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.2297, allocations: 206.4 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2297, allocations: 4 kB / 417.6 MB, free: 17.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005314/0.2303, allocations: 330.8 kB / 417.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.2303, allocations: 8 kB / 418 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.2303, allocations: 3.984 kB / 418 MB, free: 17.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002411/0.2306, allocations: 69.67 kB / 418 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.2307, allocations: 51.92 kB / 418.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/0.2323, allocations: 2.831 MB / 420.9 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.2325, allocations: 31.98 kB / 420.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.2325, allocations: 8 kB / 420.9 MB, free: 14.21 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001664/0.2327, allocations: 137.8 kB / 421.1 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.891e-05/0.2327, allocations: 27.7 kB / 421.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.295e-05/0.2328, allocations: 26.19 kB / 421.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2328, allocations: 4 kB / 421.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.2328, allocations: 7.938 kB / 421.1 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.2328, allocations: 7.984 kB / 421.1 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000847/0.2337, allocations: 0.691 MB / 421.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2337, allocations: 0 / 421.8 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.2338, allocations: 31.97 kB / 421.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001694/0.234, allocations: 81.61 kB / 422 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.234, allocations: 0 / 422 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001413/0.2354, allocations: 2.831 MB / 424.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2355, allocations: 0 / 424.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005155/0.236, allocations: 395.3 kB / 425.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.236, allocations: 104.8 kB / 425.3 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.638e-05/0.2361, allocations: 4.25 kB / 425.3 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.2363, allocations: 39.97 kB / 425.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.626e-05/0.2364, allocations: 27.91 kB / 425.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.2364, allocations: 4 kB / 425.3 MB, free: 9.422 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.2365, allocations: 190 kB / 425.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.2365, allocations: 0 / 425.5 MB, free: 9.242 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003662/0.2369, allocations: 91.84 kB / 425.6 MB, free: 9.152 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001332/0.237, allocations: 107.2 kB / 425.7 MB, free: 9.039 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006633/0.2377, allocations: 461.2 kB / 426.2 MB, free: 8.562 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.2377, allocations: 0 / 426.2 MB, free: 8.562 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.2381, allocations: 369.2 kB / 426.5 MB, free: 8.176 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.2385, allocations: 43.33 kB / 426.6 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007014/0.2392, allocations: 0.6348 MB / 427.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001633/0.2394, allocations: 0.7639 MB / 428 MB, free: 6.676 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.2394, allocations: 19.44 kB / 428 MB, free: 6.656 MB / 298.7 MB Notification: Performance of SimCode: time 4.3e-07/0.2394, allocations: 0 / 428 MB, free: 6.656 MB / 298.7 MB Notification: Performance of Templates: time 0.00546/0.2449, allocations: 5.555 MB / 433.6 MB, free: 1.121 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches