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.001578/0.001578, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001951/0.001951, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 66.64 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004597/0.1164, allocations: 3.011 MB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001583/0.1181, allocations: 0.7634 MB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001566/0.1183, allocations: 4 kB / 362.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.1185, allocations: 55.44 kB / 362.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.1187, allocations: 99.06 kB / 362.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00037/0.1191, allocations: 103.8 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.1195, allocations: 410.2 kB / 363.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.1197, allocations: 123.1 kB / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002664/0.12, allocations: 155.5 kB / 363.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.1202, allocations: 171.2 kB / 363.8 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.027e-05/0.1202, allocations: 32 kB / 363.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.241e-05/0.1203, allocations: 36 kB / 363.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.612e-05/0.1204, allocations: 67.77 kB / 363.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.1206, allocations: 171.2 kB / 364.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004075/0.121, allocations: 394.6 kB / 364.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.121, allocations: 3.984 kB / 364.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.121, allocations: 4 kB / 364.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.121, allocations: 4 kB / 364.5 MB, free: 7.754 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.0009999/0.122, allocations: 0.6275 MB / 365.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.1221, allocations: 12.03 kB / 365.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002175/0.1223, allocations: 44.55 kB / 365.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.1227, allocations: 291.5 kB / 365.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.1227, allocations: 20.94 kB / 365.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.1228, allocations: 28.38 kB / 365.5 MB, free: 6.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.1233, allocations: 261.2 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1233, allocations: 3.938 kB / 365.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.717e-05/0.1233, allocations: 12 kB / 365.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.1234, allocations: 8 kB / 365.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004699/0.1238, allocations: 214.1 kB / 366 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.1254, allocations: 0.9638 MB / 366.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005257/0.126, allocations: 306 kB / 367.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002224/0.1262, allocations: 116.4 kB / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1262, allocations: 0 / 367.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.1263, allocations: 42.48 kB / 367.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.1263, allocations: 0 / 367.4 MB, free: 4.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001245/0.1275, allocations: 0.5598 MB / 368 MB, free: 4.023 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.1276, allocations: 51.41 kB / 368 MB, free: 3.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.1278, allocations: 254.5 kB / 368.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.365e-05/0.1278, allocations: 33.7 kB / 368.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.128, allocations: 191.9 kB / 368.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.583e-05/0.128, allocations: 63.02 kB / 368.5 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.1281, allocations: 45.94 kB / 368.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1282, allocations: 330.8 kB / 368.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.1284, allocations: 80.36 kB / 369 MB, free: 2.941 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.1287, allocations: 117 kB / 369.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.129, allocations: 184.2 kB / 369.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.129, allocations: 3.938 kB / 369.3 MB, free: 2.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005965/0.1296, allocations: 322.7 kB / 369.6 MB, free: 2.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.1297, allocations: 8 kB / 369.6 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1297, allocations: 0 / 369.6 MB, free: 2.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002928/0.13, allocations: 81.64 kB / 369.7 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001952/0.1302, allocations: 35.97 kB / 369.7 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1906/0.3208, allocations: 3.046 MB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.3211, allocations: 27.53 kB / 372.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.3212, allocations: 9.062 kB / 372.8 MB, free: 18.88 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.0001839/0.3214, allocations: 145.1 kB / 372.9 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.715e-05/0.3214, allocations: 29.12 kB / 373 MB, free: 18.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.3215, allocations: 28.89 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3215, allocations: 2.125 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.3215, allocations: 3.172 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3216, allocations: 4.312 kB / 373 MB, free: 18.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001264/0.3228, allocations: 0.6831 MB / 373.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.3229, allocations: 2.188 kB / 373.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001511/0.323, allocations: 24.61 kB / 373.7 MB, free: 18.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.3233, allocations: 78.48 kB / 373.8 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.3233, allocations: 2.094 kB / 373.8 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.3254, allocations: 3.044 MB / 376.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.3254, allocations: 3.938 kB / 376.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000698/0.3261, allocations: 380.9 kB / 377.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.642e-05/0.3262, allocations: 104.8 kB / 377.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.3262, allocations: 7.375 kB / 377.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.3265, allocations: 35.61 kB / 377.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.299e-05/0.3266, allocations: 26.98 kB / 377.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.3266, allocations: 4.781 kB / 377.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002464/0.3269, allocations: 188.6 kB / 377.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3269, allocations: 0 / 377.6 MB, free: 15.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004633/0.3273, allocations: 92.31 kB / 377.7 MB, free: 15.3 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.0001994/0.3275, allocations: 109.7 kB / 377.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008691/0.3284, allocations: 442.9 kB / 378.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3284, allocations: 4.406 kB / 378.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004806/0.3289, allocations: 349.7 kB / 378.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.3294, allocations: 49.95 kB / 378.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.3304, allocations: 0.4914 MB / 379.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.3307, allocations: 0.7679 MB / 379.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001618/0.3309, allocations: 26.39 kB / 379.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.3309, allocations: 22.94 kB / 379.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3309, allocations: 0 / 379.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of Templates: time 0.0636/0.3945, allocations: 3.706 MB / 383.6 MB, free: 13.44 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 -s gbode -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