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.00109/0.00109, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008619/0.0008621, allocations: 103.7 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002113/0.0002113, allocations: 15.94 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2051, allocations: 51.28 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002036/0.2072, allocations: 2.57 MB / 410.1 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007114/0.2079, allocations: 0.6902 MB / 410.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.208, allocations: 4 kB / 410.8 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.2081, allocations: 41.12 kB / 410.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.2083, allocations: 88.73 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.2085, allocations: 67.33 kB / 410.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.2087, allocations: 378.2 kB / 411.3 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.2089, allocations: 81.69 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.209, allocations: 135.5 kB / 411.5 MB, free: 23.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.2092, allocations: 143.4 kB / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.229e-05/0.2092, allocations: 23.88 kB / 411.7 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.702e-05/0.2093, allocations: 20 kB / 411.7 MB, free: 23.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.072e-05/0.2093, allocations: 47.83 kB / 411.8 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.384e-05/0.2094, allocations: 89.52 kB / 411.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.2095, allocations: 276.2 kB / 412.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.2096, allocations: 0 / 412.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2096, allocations: 0 / 412.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.2096, allocations: 0 / 412.1 MB, free: 23.19 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.0007096/0.2103, allocations: 0.6001 MB / 412.7 MB, free: 22.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.2103, allocations: 12.03 kB / 412.7 MB, free: 22.53 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.2105, allocations: 43.62 kB / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002218/0.2107, allocations: 270.4 kB / 413 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.643e-05/0.2107, allocations: 20.56 kB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.96e-05/0.2108, allocations: 24 kB / 413.1 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004421/0.2112, allocations: 264.8 kB / 413.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.2112, allocations: 3.984 kB / 413.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.615e-05/0.2113, allocations: 19.92 kB / 413.4 MB, free: 21.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.2113, allocations: 12 kB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004111/0.2117, allocations: 230.1 kB / 413.6 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.213, allocations: 0.9874 MB / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.2134, allocations: 308.1 kB / 414.9 MB, free: 20.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001869/0.2136, allocations: 117.2 kB / 415 MB, free: 20.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.2136, allocations: 4.188 kB / 415 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.521e-05/0.2136, allocations: 34.75 kB / 415 MB, free: 20.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.212e-06/0.2137, allocations: 0 / 415 MB, free: 20.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001049/0.2147, allocations: 0.588 MB / 415.6 MB, free: 19.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.982e-05/0.2147, allocations: 55.41 kB / 415.7 MB, free: 19.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001859/0.2149, allocations: 262.5 kB / 415.9 MB, free: 19.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.215, allocations: 33.7 kB / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/0.215, allocations: 183.9 kB / 416.1 MB, free: 18.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.2151, allocations: 67.02 kB / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.738e-06/0.2151, allocations: 4 kB / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.724e-05/0.2151, allocations: 334.8 kB / 416.5 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001678/0.2153, allocations: 84.36 kB / 416.6 MB, free: 18.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.2155, allocations: 119.4 kB / 416.7 MB, free: 18.25 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.2157, allocations: 99.84 kB / 416.8 MB, free: 18.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2157, allocations: 0 / 416.8 MB, free: 18.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005226/0.2162, allocations: 338.8 kB / 417.2 MB, free: 17.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.2162, allocations: 4 kB / 417.2 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-06/0.2162, allocations: 0 / 417.2 MB, free: 17.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000217/0.2165, allocations: 73.67 kB / 417.2 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.2166, allocations: 43.91 kB / 417.3 MB, free: 17.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001403/0.2181, allocations: 2.835 MB / 420.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001676/0.2182, allocations: 35.77 kB / 420.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.2183, allocations: 12 kB / 420.2 MB, free: 14.54 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 9.832e-05/0.2184, allocations: 141.7 kB / 420.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.2184, allocations: 23.72 kB / 420.3 MB, free: 14.37 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.341e-05/0.2184, allocations: 34.17 kB / 420.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2185, allocations: 0 / 420.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2185, allocations: 4 kB / 420.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.2185, allocations: 4 kB / 420.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007822/0.2193, allocations: 0.6949 MB / 421.1 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2193, allocations: 4 kB / 421.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001243/0.2194, allocations: 27.98 kB / 421.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001567/0.2196, allocations: 81.84 kB / 421.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.2196, allocations: 4 kB / 421.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/0.2209, allocations: 2.827 MB / 424 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2209, allocations: 0 / 424 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004981/0.2214, allocations: 399.3 kB / 424.4 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.883e-05/0.2215, allocations: 104.8 kB / 424.5 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.511e-05/0.2215, allocations: 4 kB / 424.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.2217, allocations: 35.98 kB / 424.5 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.2218, allocations: 19.97 kB / 424.6 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.2218, allocations: 8 kB / 424.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001157/0.2219, allocations: 186 kB / 424.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2219, allocations: 0 / 424.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002941/0.2222, allocations: 95.75 kB / 424.8 MB, free: 9.488 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 9.428e-05/0.2223, allocations: 103.2 kB / 424.9 MB, free: 9.379 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005951/0.2229, allocations: 473 kB / 425.4 MB, free: 8.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.223, allocations: 4 kB / 425.4 MB, free: 8.887 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.2233, allocations: 349.4 kB / 425.8 MB, free: 8.52 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003416/0.2236, allocations: 50.72 kB / 425.8 MB, free: 8.473 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000612/0.2243, allocations: 0.6323 MB / 426.4 MB, free: 7.809 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.2244, allocations: 0.76 MB / 427.2 MB, free: 7.023 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.537e-05/0.2245, allocations: 23.44 kB / 427.2 MB, free: 7 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2245, allocations: 0 / 427.2 MB, free: 7 MB / 298.7 MB Notification: Performance of Templates: time 0.005114/0.2296, allocations: 5.572 MB / 432.8 MB, free: 1.445 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