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.001087/0.001087, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247.4 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 59.47 kB / 307.6 MB, free: 0.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0901/0.09137, allocations: 50.53 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004142/0.09555, allocations: 3.019 MB / 361.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001354/0.09693, allocations: 0.7595 MB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002416/0.09719, allocations: 15.94 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001939/0.09741, allocations: 51.5 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002449/0.09766, allocations: 103 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.098, allocations: 99.8 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004414/0.09845, allocations: 414.2 kB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.09866, allocations: 107.1 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.09893, allocations: 159.4 kB / 362.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.09915, allocations: 167.2 kB / 363 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.959e-05/0.09922, allocations: 32 kB / 363 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.09933, allocations: 36 kB / 363.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.364e-05/0.09941, allocations: 75.75 kB / 363.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.09962, allocations: 171.1 kB / 363.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.1001, allocations: 394.9 kB / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1001, allocations: 0 / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1001, allocations: 0 / 363.7 MB, free: 8.547 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.1001, allocations: 4 kB / 363.7 MB, free: 8.543 MB / 302.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.001047/0.1012, allocations: 0.6313 MB / 364.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1012, allocations: 12.03 kB / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.1014, allocations: 40.56 kB / 364.4 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000306/0.1017, allocations: 279.6 kB / 364.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.1018, allocations: 20.94 kB / 364.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.1018, allocations: 32.3 kB / 364.7 MB, free: 7.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005051/0.1023, allocations: 269.1 kB / 365 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1023, allocations: 0 / 365 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.1024, allocations: 12 kB / 365 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.1024, allocations: 4 kB / 365 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004697/0.1029, allocations: 214.1 kB / 365.2 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.1045, allocations: 0.9755 MB / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005023/0.105, allocations: 299.7 kB / 366.5 MB, free: 5.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.1053, allocations: 112.8 kB / 366.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.1053, allocations: 7.938 kB / 366.6 MB, free: 5.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.1053, allocations: 30.56 kB / 366.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.1054, allocations: 0 / 366.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001246/0.1066, allocations: 0.5627 MB / 367.2 MB, free: 4.816 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.1066, allocations: 51.41 kB / 367.2 MB, free: 4.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002484/0.1069, allocations: 266.5 kB / 367.5 MB, free: 4.484 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.1069, allocations: 25.7 kB / 367.5 MB, free: 4.453 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.107, allocations: 187.9 kB / 367.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.248e-05/0.1071, allocations: 70.94 kB / 367.8 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.38e-05/0.1072, allocations: 45.94 kB / 367.8 MB, free: 4.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1073, allocations: 334.8 kB / 368.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.1075, allocations: 80.42 kB / 368.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.1077, allocations: 105.1 kB / 368.3 MB, free: 3.613 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.1081, allocations: 184.2 kB / 368.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1081, allocations: 4 kB / 368.5 MB, free: 3.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006321/0.1088, allocations: 326.6 kB / 368.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1088, allocations: 14.8 kB / 368.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1088, allocations: 0 / 368.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002555/0.1091, allocations: 77.72 kB / 368.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.1093, allocations: 35.97 kB / 368.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1376/0.2468, allocations: 3.046 MB / 372 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.2471, allocations: 25.33 kB / 372 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.2471, allocations: 8.969 kB / 372 MB, free: 19.2 MB / 302.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.0001354/0.2473, allocations: 145.6 kB / 372.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.572e-05/0.2473, allocations: 29.27 kB / 372.2 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.306e-05/0.2474, allocations: 33.55 kB / 372.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2474, allocations: 7 kB / 372.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.2474, allocations: 2.312 kB / 372.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.2474, allocations: 1.312 kB / 372.2 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/0.2484, allocations: 0.6842 MB / 372.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.2484, allocations: 2.062 kB / 372.9 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.2486, allocations: 27.3 kB / 373 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.2488, allocations: 82.52 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.2488, allocations: 1.062 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001567/0.2504, allocations: 3.035 MB / 376.1 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2504, allocations: 2.609 kB / 376.1 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.2509, allocations: 380.1 kB / 376.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.251, allocations: 114.5 kB / 376.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.251, allocations: 5.516 kB / 376.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.2513, allocations: 30.64 kB / 376.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.216e-05/0.2514, allocations: 17.89 kB / 376.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.2514, allocations: 11.59 kB / 376.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001673/0.2516, allocations: 192.2 kB / 376.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2516, allocations: 0 / 376.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003814/0.252, allocations: 91.83 kB / 376.9 MB, free: 15.71 MB / 302.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.0001012/0.2521, allocations: 111.5 kB / 377 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007241/0.2528, allocations: 441.1 kB / 377.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2528, allocations: 3.625 kB / 377.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003695/0.2532, allocations: 347.8 kB / 377.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.2537, allocations: 52.08 kB / 377.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008176/0.2545, allocations: 0.5308 MB / 378.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.2547, allocations: 0.7654 MB / 379.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.2548, allocations: 24.58 kB / 379.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2548, allocations: 0 / 379.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of Templates: time 0.007459/0.2622, allocations: 5.647 MB / 384.8 MB, free: 13.25 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches