Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 108.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001679/0.001679, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001088/0.001088, allocations: 50.95 kB / 300.6 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1178, allocations: 49.45 MB / 350 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.006597/0.1245, allocations: 2.991 MB / 353 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1265, allocations: 0.6855 MB / 353.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004101/0.127, allocations: 8 kB / 353.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002664/0.1273, allocations: 59.42 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000288/0.1276, allocations: 95.06 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.1279, allocations: 91.88 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004637/0.1284, allocations: 406.2 kB / 354.4 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003401/0.1288, allocations: 111.1 kB / 354.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.129, allocations: 151.5 kB / 354.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.1292, allocations: 175.2 kB / 354.8 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.117e-05/0.1293, allocations: 32 kB / 354.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.574e-05/0.1293, allocations: 28 kB / 354.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.56e-05/0.1294, allocations: 71.77 kB / 354.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.1296, allocations: 175.2 kB / 355.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004718/0.1301, allocations: 378.9 kB / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.1301, allocations: 4 kB / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.129e-06/0.1301, allocations: 0 / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.859e-06/0.1301, allocations: 3.938 kB / 355.5 MB, free: 14.94 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.00106/0.1312, allocations: 0.6314 MB / 356.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.1313, allocations: 11.89 kB / 356.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.259e-05/0.1313, allocations: 36.56 kB / 356.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.1317, allocations: 279.5 kB / 356.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.1318, allocations: 24.94 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.1318, allocations: 28.38 kB / 356.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005302/0.1323, allocations: 257.2 kB / 356.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1324, allocations: 0 / 356.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.1324, allocations: 12 kB / 356.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1324, allocations: 4 kB / 356.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004854/0.1329, allocations: 226.1 kB / 357 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.1346, allocations: 0.9716 MB / 357.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005325/0.1352, allocations: 302.4 kB / 358.2 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.1354, allocations: 108.8 kB / 358.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.1354, allocations: 4 kB / 358.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.1355, allocations: 34.56 kB / 358.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.1355, allocations: 0 / 358.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001326/0.1368, allocations: 0.5666 MB / 358.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.1369, allocations: 51.41 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.1372, allocations: 258.6 kB / 359.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.1372, allocations: 33.7 kB / 359.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.1373, allocations: 187.9 kB / 359.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.1374, allocations: 66.92 kB / 359.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.434e-05/0.1375, allocations: 49.94 kB / 359.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1376, allocations: 334.8 kB / 359.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.1379, allocations: 72.42 kB / 360 MB, free: 10.14 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.1381, allocations: 116.6 kB / 360.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.1385, allocations: 174.5 kB / 360.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1385, allocations: 0 / 360.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006515/0.1392, allocations: 334.6 kB / 360.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1392, allocations: 4 kB / 360.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1392, allocations: 4 kB / 360.6 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002976/0.1395, allocations: 77.67 kB / 360.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001935/0.1397, allocations: 39.97 kB / 360.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.1423, allocations: 3.043 MB / 363.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.1426, allocations: 31.77 kB / 363.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1426, allocations: 4 kB / 363.8 MB, free: 6.016 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.0002017/0.1428, allocations: 141.8 kB / 363.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.647e-05/0.1429, allocations: 31.64 kB / 364 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.434e-05/0.1429, allocations: 30.19 kB / 364 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.143, allocations: 3.984 kB / 364 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.143, allocations: 4 kB / 364 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.143, allocations: 3.984 kB / 364 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.1441, allocations: 0.6833 MB / 364.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.1441, allocations: 8 kB / 364.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00015/0.1443, allocations: 27.91 kB / 364.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.1445, allocations: 73.67 kB / 364.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1445, allocations: 4 kB / 364.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002742/0.1473, allocations: 3.04 MB / 367.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1473, allocations: 0 / 367.8 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/0.148, allocations: 382.4 kB / 368.2 MB, free: 1.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.148, allocations: 108.6 kB / 368.3 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.218e-05/0.1481, allocations: 8 kB / 368.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002558/0.1483, allocations: 31.97 kB / 368.3 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.1484, allocations: 23.92 kB / 368.4 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.1485, allocations: 11.92 kB / 368.4 MB, free: 1.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.1486, allocations: 186 kB / 368.6 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1487, allocations: 0 / 368.6 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004146/0.1491, allocations: 91.84 kB / 368.7 MB, free: 0.75 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.0001488/0.1492, allocations: 107.7 kB / 368.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008412/0.1501, allocations: 453.1 kB / 369.2 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1501, allocations: 0 / 369.2 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2235/0.3736, allocations: 342.8 kB / 369.5 MB, free: 25.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000837/0.3745, allocations: 54.16 kB / 369.6 MB, free: 25.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.3758, allocations: 0.4964 MB / 370.1 MB, free: 25.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.3761, allocations: 0.7649 MB / 370.9 MB, free: 24.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001338/0.3762, allocations: 24.95 kB / 370.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.3763, allocations: 19.52 kB / 370.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3763, allocations: 0 / 370.9 MB, free: 24.48 MB / 302.1 MB Notification: Performance of Templates: time 0.008576/0.3849, allocations: 3.686 MB / 374.6 MB, free: 24.36 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches