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.001266/0.001267, allocations: 106 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001301, allocations: 66.3 kB / 306.9 MB, free: 0.6133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1341, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005164/0.1393, allocations: 3.023 MB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001875/0.1412, allocations: 0.7596 MB / 361.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003932/0.1417, allocations: 11.94 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002818/0.142, allocations: 47.5 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003475/0.1423, allocations: 99.06 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004165/0.1428, allocations: 103.8 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005405/0.1433, allocations: 410.2 kB / 361.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.1436, allocations: 111.1 kB / 362 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003624/0.1439, allocations: 159.4 kB / 362.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.1442, allocations: 163.3 kB / 362.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.71e-05/0.1442, allocations: 32 kB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.1444, allocations: 36 kB / 362.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.319e-05/0.1444, allocations: 79.75 kB / 362.5 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001826/0.1446, allocations: 171.1 kB / 362.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000453/0.1451, allocations: 394.9 kB / 363 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.1451, allocations: 0 / 363 MB, free: 8.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1451, allocations: 3.938 kB / 363 MB, free: 8.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1451, allocations: 0 / 363 MB, free: 8.496 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.001238/0.1464, allocations: 0.6236 MB / 363.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.1465, allocations: 16.02 kB / 363.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.1467, allocations: 40.56 kB / 363.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.1471, allocations: 279.6 kB / 364 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.1472, allocations: 20.94 kB / 364 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.1472, allocations: 28.31 kB / 364 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.1478, allocations: 277 kB / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1478, allocations: 0 / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.682e-05/0.1479, allocations: 12 kB / 364.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.1479, allocations: 8 kB / 364.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004957/0.1484, allocations: 214.1 kB / 364.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.1502, allocations: 0.9755 MB / 365.5 MB, free: 5.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.1508, allocations: 307 kB / 365.8 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.151, allocations: 108.8 kB / 365.9 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.1511, allocations: 7.984 kB / 365.9 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.1511, allocations: 38.56 kB / 366 MB, free: 5.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.303e-06/0.1511, allocations: 0 / 366 MB, free: 5.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001275/0.1524, allocations: 0.552 MB / 366.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.1524, allocations: 55.41 kB / 366.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.1527, allocations: 262.5 kB / 366.8 MB, free: 4.434 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.1527, allocations: 29.7 kB / 366.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1529, allocations: 187.8 kB / 367 MB, free: 4.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.618e-05/0.153, allocations: 67 kB / 367.1 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1531, allocations: 45.94 kB / 367.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.1533, allocations: 338.8 kB / 367.5 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1535, allocations: 72.42 kB / 367.5 MB, free: 3.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/0.1538, allocations: 109.1 kB / 367.6 MB, free: 3.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.1542, allocations: 184.2 kB / 367.8 MB, free: 3.375 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1542, allocations: 3.938 kB / 367.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006589/0.1548, allocations: 330.7 kB / 368.2 MB, free: 3.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1549, allocations: 7.984 kB / 368.2 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1549, allocations: 0 / 368.2 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000326/0.1552, allocations: 73.73 kB / 368.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.1554, allocations: 39.97 kB / 368.3 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.182/0.3374, allocations: 3.048 MB / 371.3 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003396/0.3378, allocations: 25.94 kB / 371.3 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.3378, allocations: 6.438 kB / 371.3 MB, free: 19.07 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.0001973/0.338, allocations: 145.3 kB / 371.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.02e-05/0.3381, allocations: 30.48 kB / 371.5 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.16e-05/0.3381, allocations: 31.42 kB / 371.6 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.3382, allocations: 5.438 kB / 371.6 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.3382, allocations: 5.141 kB / 371.6 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3382, allocations: 2.422 kB / 371.6 MB, free: 18.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001242/0.3394, allocations: 0.6825 MB / 372.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3394, allocations: 0.625 kB / 372.2 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.3396, allocations: 28.41 kB / 372.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002354/0.3398, allocations: 80.8 kB / 372.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.3399, allocations: 6.266 kB / 372.4 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.3421, allocations: 3.035 MB / 375.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3421, allocations: 3.656 kB / 375.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006412/0.3428, allocations: 381.5 kB / 375.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.453e-05/0.3429, allocations: 109.8 kB / 375.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.3429, allocations: 5.562 kB / 375.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.3431, allocations: 30.97 kB / 375.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-05/0.3432, allocations: 26.92 kB / 375.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.57e-05/0.3433, allocations: 5.594 kB / 375.9 MB, free: 15.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.3435, allocations: 188.5 kB / 376.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3435, allocations: 0 / 376.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004115/0.3439, allocations: 96.08 kB / 376.2 MB, free: 15.57 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.0001305/0.344, allocations: 103.1 kB / 376.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000802/0.3448, allocations: 447.7 kB / 376.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.3448, allocations: 6.375 kB / 376.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004169/0.3453, allocations: 344.2 kB / 377.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005137/0.3458, allocations: 48.77 kB / 377.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009407/0.3467, allocations: 0.5042 MB / 377.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.347, allocations: 0.7685 MB / 378.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.3471, allocations: 23.48 kB / 378.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.633e-05/0.3471, allocations: 19.75 kB / 378.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3472, allocations: 1.375 kB / 378.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of Templates: time 0.00862/0.3558, allocations: 3.708 MB / 382.2 MB, free: 13.73 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/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