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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 110.4 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.001448/0.001448, 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.498/1.498, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 47.95 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1358, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004795/0.1407, allocations: 2.995 MB / 353.2 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.142, allocations: 0.6855 MB / 353.8 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1422, allocations: 4 kB / 353.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.1424, allocations: 55.42 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.1426, allocations: 103.1 kB / 354 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003025/0.1429, allocations: 95.81 kB / 354.1 MB, free: 356 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004885/0.1434, allocations: 406.3 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002561/0.1436, allocations: 111 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.1439, allocations: 147.5 kB / 354.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.1441, allocations: 167.2 kB / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.574e-05/0.1442, allocations: 32 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.189e-05/0.1443, allocations: 32 kB / 355 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.205e-05/0.1444, allocations: 71.7 kB / 355 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.1446, allocations: 175.2 kB / 355.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.145, allocations: 378.9 kB / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.145, allocations: 0 / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.108e-06/0.145, allocations: 4 kB / 355.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1451, allocations: 3.938 kB / 355.6 MB, free: 14.84 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.001262/0.1463, allocations: 0.6314 MB / 356.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.447e-05/0.1464, allocations: 15.89 kB / 356.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.1465, allocations: 66.72 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1466, allocations: 36.56 kB / 356.3 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.1471, allocations: 279.5 kB / 356.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/0.1471, allocations: 16.94 kB / 356.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.762e-05/0.1472, allocations: 36.36 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.1477, allocations: 257 kB / 356.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.1478, allocations: 0 / 356.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/0.1478, allocations: 16 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.1478, allocations: 8 kB / 356.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005343/0.1484, allocations: 218.1 kB / 357.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.1501, allocations: 0.9717 MB / 358.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.1507, allocations: 301.5 kB / 358.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.1509, allocations: 104.8 kB / 358.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.151, allocations: 7.938 kB / 358.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.151, allocations: 38.56 kB / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.452e-06/0.151, allocations: 0 / 358.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001376/0.1524, allocations: 0.5597 MB / 359.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/0.1525, allocations: 55.41 kB / 359.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.1528, allocations: 258.6 kB / 359.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.1528, allocations: 29.7 kB / 359.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000183/0.153, allocations: 179.9 kB / 359.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.1531, allocations: 74.89 kB / 359.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.271e-05/0.1532, allocations: 49.94 kB / 359.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.1533, allocations: 334.8 kB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.1535, allocations: 76.42 kB / 360.2 MB, free: 9.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.1538, allocations: 104.6 kB / 360.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004093/0.1542, allocations: 186.5 kB / 360.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1542, allocations: 0 / 360.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007252/0.1549, allocations: 330.7 kB / 360.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.155, allocations: 7.984 kB / 360.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.155, allocations: 0 / 360.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002875/0.1553, allocations: 73.61 kB / 360.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1555, allocations: 43.91 kB / 360.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002506/0.158, allocations: 3.051 MB / 363.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000191/0.1582, allocations: 31.73 kB / 364 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.1582, allocations: 4 kB / 364 MB, free: 5.832 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.0001428/0.1584, allocations: 143.8 kB / 364.1 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.097e-05/0.1584, allocations: 27.66 kB / 364.1 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.27e-05/0.1585, allocations: 30.23 kB / 364.2 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1585, allocations: 8 kB / 364.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.1585, allocations: 0 / 364.2 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1585, allocations: 4 kB / 364.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.1596, allocations: 0.687 MB / 364.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1596, allocations: 0 / 364.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.1598, allocations: 31.91 kB / 364.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002035/0.16, allocations: 69.67 kB / 365 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.16, allocations: 4 kB / 365 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002643/0.1626, allocations: 3.04 MB / 368 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1627, allocations: 0 / 368 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006467/0.1633, allocations: 381.6 kB / 368.4 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.1634, allocations: 108.8 kB / 368.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.1635, allocations: 4 kB / 368.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002837/0.1638, allocations: 28.17 kB / 368.5 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.734e-05/0.1639, allocations: 27.84 kB / 368.5 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.692e-05/0.1639, allocations: 8 kB / 368.6 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001986/0.1641, allocations: 197.9 kB / 368.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1641, allocations: 0 / 368.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004122/0.1645, allocations: 91.84 kB / 368.8 MB, free: 0.5703 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.2158/0.3804, allocations: 0.911 MB / 369.7 MB, free: 25.01 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3817, allocations: 453.4 kB / 370.2 MB, free: 24.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.3817, allocations: 0 / 370.2 MB, free: 24.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.3822, allocations: 347.3 kB / 370.5 MB, free: 24.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/0.3828, allocations: 47.42 kB / 370.6 MB, free: 24.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004615/0.3874, allocations: 2.71 MB / 373.3 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.3878, allocations: 0.7647 MB / 374.1 MB, free: 22.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.3879, allocations: 23.47 kB / 374.1 MB, free: 22.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.3881, allocations: 90.41 kB / 374.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3881, allocations: 0 / 374.2 MB, free: 22.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0384/0.4265, allocations: 6.302 MB / 380.5 MB, free: 21.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.49, allocations: 5.062 kB / 380.5 MB, free: 21.57 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > 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/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_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches