Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) 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) 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_trunk_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_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001114, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.522/1.522, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.89 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4162/0.4174, allocations: 50.54 MB / 409.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005333/0.4228, allocations: 3.025 MB / 412.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.4246, allocations: 0.7478 MB / 413 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002243/0.4249, allocations: 8 kB / 413 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.4251, allocations: 55.44 kB / 413.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.4254, allocations: 99.06 kB / 413.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000411/0.4258, allocations: 99.86 kB / 413.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004428/0.4262, allocations: 414.1 kB / 413.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002528/0.4265, allocations: 115.1 kB / 413.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002915/0.4268, allocations: 159.4 kB / 414 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.427, allocations: 163.3 kB / 414.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.4271, allocations: 32 kB / 414.1 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.19e-05/0.4272, allocations: 36 kB / 414.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.638e-05/0.4273, allocations: 71.7 kB / 414.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.4274, allocations: 175.1 kB / 414.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004898/0.4279, allocations: 399.9 kB / 414.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.428, allocations: 0 / 414.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.428, allocations: 4 kB / 414.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.428, allocations: 0 / 414.8 MB, free: 12.12 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.001165/0.4292, allocations: 0.6275 MB / 415.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.803e-05/0.4292, allocations: 12.03 kB / 415.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000279/0.4295, allocations: 52.48 kB / 415.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005981/0.4301, allocations: 291.5 kB / 415.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.4302, allocations: 20.88 kB / 415.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.146e-05/0.4302, allocations: 28.38 kB / 415.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.4308, allocations: 257.2 kB / 416.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.4309, allocations: 4 kB / 416.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-05/0.4309, allocations: 12 kB / 416.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.431, allocations: 8 kB / 416.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004875/0.4315, allocations: 214.1 kB / 416.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001803/0.4333, allocations: 0.9599 MB / 417.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005685/0.4339, allocations: 303.7 kB / 417.6 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.4341, allocations: 115.7 kB / 417.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.4341, allocations: 8 kB / 417.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.4342, allocations: 34.55 kB / 417.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.384e-06/0.4342, allocations: 0 / 417.7 MB, free: 9.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001372/0.4356, allocations: 0.5636 MB / 418.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.4356, allocations: 51.41 kB / 418.3 MB, free: 8.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003102/0.4359, allocations: 262.6 kB / 418.6 MB, free: 8.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.436, allocations: 29.69 kB / 418.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.4361, allocations: 183.9 kB / 418.8 MB, free: 7.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.28e-05/0.4362, allocations: 70.91 kB / 418.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.454e-05/0.4363, allocations: 49.94 kB / 418.9 MB, free: 7.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4365, allocations: 334.8 kB / 419.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001927/0.4367, allocations: 76.42 kB / 419.3 MB, free: 7.309 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.4369, allocations: 111.4 kB / 419.4 MB, free: 7.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003707/0.4373, allocations: 190.4 kB / 419.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.4373, allocations: 0 / 419.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000626/0.4379, allocations: 326.8 kB / 419.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.438, allocations: 10.34 kB / 420 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.438, allocations: 0 / 420 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003475/0.4383, allocations: 73.67 kB / 420 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.4385, allocations: 39.91 kB / 420.1 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002763/0.4413, allocations: 3.051 MB / 423.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.4416, allocations: 23.75 kB / 423.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.4416, allocations: 8 kB / 423.2 MB, free: 3.18 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.0002233/0.4418, allocations: 141.8 kB / 423.3 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.44e-05/0.4419, allocations: 31.66 kB / 423.3 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.843e-05/0.442, allocations: 34.11 kB / 423.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.442, allocations: 4.062 kB / 423.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.442, allocations: 4 kB / 423.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.442, allocations: 7.922 kB / 423.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.4431, allocations: 0.6873 MB / 424.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.4432, allocations: 4 kB / 424.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.4433, allocations: 23.98 kB / 424.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002038/0.4435, allocations: 69.61 kB / 424.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.4435, allocations: 8 kB / 424.2 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.446, allocations: 3.041 MB / 427.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4461, allocations: 0 / 427.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007484/0.4468, allocations: 388.8 kB / 427.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.447, allocations: 104.8 kB / 427.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.447, allocations: 4 kB / 427.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.4473, allocations: 35.97 kB / 427.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.909e-05/0.4474, allocations: 19.97 kB / 427.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.4474, allocations: 4 kB / 427.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002352/0.4476, allocations: 186 kB / 427.9 MB, free: 14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4476, allocations: 0 / 427.9 MB, free: 14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005245/0.4482, allocations: 95.84 kB / 428 MB, free: 13.9 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.0002135/0.4484, allocations: 115.1 kB / 428.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009979/0.4494, allocations: 441.2 kB / 428.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4494, allocations: 0 / 428.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004707/0.4499, allocations: 357.1 kB / 428.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.4504, allocations: 48.55 kB / 429 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.4515, allocations: 0.4889 MB / 429.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004431/0.452, allocations: 0.7677 MB / 430.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001337/0.4521, allocations: 26.28 kB / 430.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.223e-05/0.4522, allocations: 23.42 kB / 430.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of SimCode: time 1.472e-06/0.4522, allocations: 0 / 430.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of Templates: time 0.01013/0.4624, allocations: 3.733 MB / 434 MB, free: 7.84 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches