Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001493/0.001492, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.983/1.983, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001098, allocations: 94.58 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.198e-05/3.209e-05, allocations: 7.938 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09656/0.09662, allocations: 47.57 MB / 369.1 MB, free: 2.219 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.4916, allocations: 77.37 MB / 446.4 MB, free: 15.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.4919, allocations: 68.41 kB / 446.5 MB, free: 15.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02091/0.5128, allocations: 4.949 MB / 451.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5129, allocations: 0 / 451.5 MB, free: 11.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.773e-05/0.5129, allocations: 8 kB / 451.5 MB, free: 11.51 MB / 330.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.001213/0.5141, allocations: 0.5609 MB / 452 MB, free: 10.92 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.5142, allocations: 8.031 kB / 452 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001096/0.5143, allocations: 39.53 kB / 452.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.5148, allocations: 271.1 kB / 452.3 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.981e-05/0.5148, allocations: 21.81 kB / 452.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.772e-05/0.5149, allocations: 30.2 kB / 452.4 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006423/0.5155, allocations: 233.7 kB / 452.6 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.5156, allocations: 0 / 452.6 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.556e-05/0.5156, allocations: 11.31 kB / 452.6 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.5156, allocations: 12 kB / 452.6 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000519/0.5162, allocations: 175.7 kB / 452.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/0.5188, allocations: 0.9874 MB / 453.8 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.5194, allocations: 195.9 kB / 454 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000296/0.5198, allocations: 109.5 kB / 454.1 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.5198, allocations: 4.125 kB / 454.1 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.5198, allocations: 37.81 kB / 454.1 MB, free: 9.133 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 2.565e-06/0.5199, allocations: 0 / 454.1 MB, free: 9.133 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007562/0.5206, allocations: 253.1 kB / 454.4 MB, free: 8.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.5207, allocations: 51.41 kB / 454.4 MB, free: 8.863 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003482/0.521, allocations: 231.4 kB / 454.7 MB, free: 8.672 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.5211, allocations: 33.02 kB / 454.7 MB, free: 8.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.5213, allocations: 240.5 kB / 454.9 MB, free: 8.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.354e-05/0.5213, allocations: 77.45 kB / 455 MB, free: 8.363 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.5214, allocations: 0 / 455 MB, free: 8.363 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5215, allocations: 321.5 kB / 455.3 MB, free: 8.047 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.5217, allocations: 58.47 kB / 455.4 MB, free: 8.008 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.5219, allocations: 86.5 kB / 455.5 MB, free: 7.941 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002005/0.5221, allocations: 70.28 kB / 455.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5222, allocations: 0 / 455.5 MB, free: 7.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007388/0.5229, allocations: 273.5 kB / 455.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.5229, allocations: 8 kB / 455.8 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.523, allocations: 0 / 455.8 MB, free: 7.672 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004017/0.5234, allocations: 74.38 kB / 455.9 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003655/0.5237, allocations: 47.91 kB / 455.9 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003112/0.5269, allocations: 2.814 MB / 458.7 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004064/0.5273, allocations: 39.66 kB / 458.8 MB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.5274, allocations: 8 kB / 458.8 MB, free: 4.641 MB / 330.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 () * 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.0001419/0.5275, allocations: 120.7 kB / 458.9 MB, free: 4.523 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.5276, allocations: 27.66 kB / 458.9 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.113e-05/0.5277, allocations: 29.28 kB / 459 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5277, allocations: 0 / 459 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/0.5277, allocations: 7.984 kB / 459 MB, free: 4.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.5277, allocations: 4 kB / 459 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.529, allocations: 0.6427 MB / 459.6 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.529, allocations: 0 / 459.6 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002551/0.5293, allocations: 31.92 kB / 459.6 MB, free: 3.852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003262/0.5296, allocations: 76.42 kB / 459.7 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.5297, allocations: 3.875 kB / 459.7 MB, free: 3.785 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003058/0.5327, allocations: 2.819 MB / 462.5 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.5328, allocations: 3.984 kB / 462.5 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008032/0.5336, allocations: 344.3 kB / 462.9 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.5337, allocations: 108.8 kB / 463 MB, free: 428 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.848e-05/0.5338, allocations: 4 kB / 463 MB, free: 424 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004683/0.5343, allocations: 39.97 kB / 463 MB, free: 384 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.5344, allocations: 19.97 kB / 463.1 MB, free: 364 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.736e-05/0.5344, allocations: 8 kB / 463.1 MB, free: 356 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002836/0.5347, allocations: 183.1 kB / 463.2 MB, free: 176 kB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5347, allocations: 0 / 463.2 MB, free: 176 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005661/0.5353, allocations: 91.84 kB / 463.3 MB, free: 84 kB / 330.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 () * 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.0002057/0.5355, allocations: 108.4 kB / 463.4 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009197/0.5365, allocations: 409.6 kB / 463.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.5365, allocations: 4 kB / 463.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00056/0.5371, allocations: 336.9 kB / 464.2 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.5376, allocations: 45.48 kB / 464.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009554/0.5386, allocations: 355.3 kB / 464.6 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.5391, allocations: 0.7755 MB / 465.3 MB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.5392, allocations: 19.44 kB / 465.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5392, allocations: 0 / 465.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of Templates: time 0.01221/0.5514, allocations: 5.404 MB / 470.8 MB, free: 8.539 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches