Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001481/0.001481, allocations: 118.2 kB / 17.79 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.001638/0.001638, allocations: 198 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3734, allocations: 50.55 MB / 409.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004721/0.3782, allocations: 2.141 MB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.3798, allocations: 0.6195 MB / 412 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.38, allocations: 4 kB / 412 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.3803, allocations: 19.78 kB / 412 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.3805, allocations: 51.56 kB / 412.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000409/0.3809, allocations: 55.88 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003635/0.3813, allocations: 163.2 kB / 412.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.3815, allocations: 53.45 kB / 412.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000302/0.3818, allocations: 67.77 kB / 412.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.382, allocations: 63.7 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.3821, allocations: 12 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.3822, allocations: 28 kB / 412.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.629e-05/0.3823, allocations: 31.84 kB / 412.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.3824, allocations: 71.67 kB / 412.6 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.3827, allocations: 168.5 kB / 412.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3827, allocations: 0 / 412.8 MB, free: 14.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3827, allocations: 7.875 kB / 412.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.3828, allocations: 0 / 412.8 MB, free: 14.05 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008558/0.3836, allocations: 447.2 kB / 413.2 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.664e-05/0.3837, allocations: 12.03 kB / 413.2 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002689/0.384, allocations: 28.75 kB / 413.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004038/0.3844, allocations: 204.1 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.3844, allocations: 8.609 kB / 413.5 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.3844, allocations: 12.38 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.3848, allocations: 127.8 kB / 413.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3848, allocations: 0 / 413.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.454e-05/0.3848, allocations: 4 kB / 413.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.3849, allocations: 11.98 kB / 413.6 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.3851, allocations: 72.67 kB / 413.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.3864, allocations: 0.6017 MB / 414.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003962/0.3868, allocations: 86.56 kB / 414.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.387, allocations: 36.97 kB / 414.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.387, allocations: 0 / 414.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/0.3871, allocations: 34.56 kB / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.813e-06/0.3871, allocations: 0 / 414.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.00082/0.3879, allocations: 255.4 kB / 414.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.388, allocations: 59.34 kB / 414.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.3882, allocations: 150.5 kB / 414.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.823e-05/0.3882, allocations: 25.7 kB / 414.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.3883, allocations: 135.9 kB / 415.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.3884, allocations: 19.66 kB / 415.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.486e-05/0.3884, allocations: 25.7 kB / 415.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.3886, allocations: 318.8 kB / 415.4 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.561e-05/0.3887, allocations: 23.92 kB / 415.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.056e-05/0.3888, allocations: 38.56 kB / 415.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.389, allocations: 74.55 kB / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.389, allocations: 3.938 kB / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000382/0.3894, allocations: 138.3 kB / 415.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.3894, allocations: 4 kB / 415.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3894, allocations: 0 / 415.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002438/0.3897, allocations: 40.89 kB / 415.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.994e-05/0.3898, allocations: 8 kB / 415.7 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.3917, allocations: 1.694 MB / 417.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.724e-05/0.3918, allocations: 7.938 kB / 417.5 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.3918, allocations: 3.984 kB / 417.5 MB, free: 8.949 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001328/0.392, allocations: 133.8 kB / 417.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.208e-05/0.392, allocations: 7.906 kB / 417.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.563e-05/0.392, allocations: 12.72 kB / 417.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3921, allocations: 0 / 417.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.894e-06/0.3921, allocations: 0 / 417.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3921, allocations: 0 / 417.6 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002705/0.3923, allocations: 213.5 kB / 417.8 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3924, allocations: 4 kB / 417.8 MB, free: 8.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.796e-05/0.3924, allocations: 3.984 kB / 417.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001314/0.3925, allocations: 40.84 kB / 417.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.3926, allocations: 3.984 kB / 417.9 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/0.3943, allocations: 1.681 MB / 419.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3943, allocations: 0 / 419.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003478/0.3947, allocations: 220.2 kB / 419.8 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.708e-05/0.3948, allocations: 85.02 kB / 419.8 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.3948, allocations: 0 / 419.8 MB, free: 6.324 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.3949, allocations: 11.98 kB / 419.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.826e-05/0.3949, allocations: 4 kB / 419.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.941e-06/0.3949, allocations: 0 / 419.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.663e-05/0.395, allocations: 119.2 kB / 420 MB, free: 6.191 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.124e-06/0.395, allocations: 3.938 kB / 420 MB, free: 6.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003731/0.3954, allocations: 39.78 kB / 420 MB, free: 6.148 MB / 334.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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001454/0.3956, allocations: 103.2 kB / 420.1 MB, free: 6.039 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004787/0.3961, allocations: 182.7 kB / 420.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3961, allocations: 0 / 420.3 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002315/0.3963, allocations: 166.7 kB / 420.5 MB, free: 5.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.3966, allocations: 15.98 kB / 420.5 MB, free: 5.656 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007367/0.3974, allocations: 272.1 kB / 420.7 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.3978, allocations: 0.7119 MB / 421.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.169e-05/0.3979, allocations: 12.41 kB / 421.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.3979, allocations: 7.438 kB / 421.5 MB, free: 4.602 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3979, allocations: 3.938 kB / 421.5 MB, free: 4.598 MB / 334.1 MB Notification: Performance of Templates: time 0.005001/0.4029, allocations: 1.52 MB / 423 MB, free: 3.09 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches