Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_3_2_3_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.001283/0.001283, allocations: 111.8 kB / 17.28 MB, free: 6.199 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.001334/0.001334, allocations: 189.3 kB / 18.2 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 205.1 MB / 224.1 MB, free: 12.35 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 51.86 kB / 280.2 MB, free: 3.375 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1399, allocations: 46.63 MB / 326.9 MB, free: 4.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.005073/0.1451, allocations: 3.009 MB / 329.9 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.1463, allocations: 0.7176 MB / 330.6 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.1465, allocations: 4 kB / 330.6 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.1467, allocations: 43.69 kB / 330.6 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.1469, allocations: 91.23 kB / 330.7 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002961/0.1472, allocations: 75.91 kB / 330.8 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000447/0.1477, allocations: 410.2 kB / 331.2 MB, free: 308 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002704/0.148, allocations: 107.1 kB / 331.3 MB, free: 208 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002263/0.1482, allocations: 143.5 kB / 331.5 MB, free: 64 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.1484, allocations: 167.2 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.233e-05/0.1485, allocations: 32 kB / 331.7 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.1486, allocations: 32 kB / 331.7 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.333e-05/0.1487, allocations: 75.69 kB / 331.8 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1489, allocations: 183.1 kB / 331.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.1493, allocations: 382.9 kB / 332.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1493, allocations: 0 / 332.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1493, allocations: 0 / 332.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1493, allocations: 0 / 332.3 MB, free: 15.21 MB / 286.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.001131/0.1504, allocations: 0.6314 MB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.025e-05/0.1505, allocations: 11.89 kB / 333 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.688e-05/0.1506, allocations: 58.73 kB / 333 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.591e-05/0.1507, allocations: 36.56 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.1511, allocations: 291.4 kB / 333.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.1511, allocations: 20.94 kB / 333.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.1512, allocations: 28.36 kB / 333.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005519/0.1518, allocations: 269 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.1518, allocations: 4 kB / 333.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.1518, allocations: 12 kB / 333.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1518, allocations: 4 kB / 333.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004726/0.1523, allocations: 214.1 kB / 333.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.154, allocations: 0.9755 MB / 334.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.1546, allocations: 295.8 kB / 335.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.1549, allocations: 116.8 kB / 335.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.1549, allocations: 4 kB / 335.3 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.474e-05/0.155, allocations: 34.56 kB / 335.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.713e-06/0.155, allocations: 0 / 335.3 MB, free: 12.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001337/0.1563, allocations: 0.5597 MB / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.1564, allocations: 51.41 kB / 335.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002787/0.1567, allocations: 258.6 kB / 336.1 MB, free: 11.08 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.1567, allocations: 29.7 kB / 336.2 MB, free: 11.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.1568, allocations: 183.9 kB / 336.4 MB, free: 10.86 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.916e-05/0.1569, allocations: 74.91 kB / 336.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.955e-05/0.157, allocations: 41.95 kB / 336.5 MB, free: 10.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1571, allocations: 330.8 kB / 336.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.1573, allocations: 76.42 kB / 336.9 MB, free: 10.33 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.1575, allocations: 115.4 kB / 337 MB, free: 10.21 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.1579, allocations: 190.3 kB / 337.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1579, allocations: 0 / 337.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006223/0.1586, allocations: 322.7 kB / 337.5 MB, free: 9.688 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.1586, allocations: 4 kB / 337.5 MB, free: 9.684 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1586, allocations: 4 kB / 337.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00031/0.1589, allocations: 77.73 kB / 337.6 MB, free: 9.598 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/0.1591, allocations: 39.84 kB / 337.6 MB, free: 9.559 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002713/0.1619, allocations: 3.051 MB / 340.7 MB, free: 6.223 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001976/0.1621, allocations: 28.11 kB / 340.7 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.1621, allocations: 8 kB / 340.7 MB, free: 6.188 MB / 286.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.0001898/0.1623, allocations: 145.8 kB / 340.8 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.754e-05/0.1624, allocations: 31.56 kB / 340.9 MB, free: 6.004 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.816e-05/0.1624, allocations: 34.17 kB / 340.9 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1624, allocations: 0 / 340.9 MB, free: 5.973 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/0.1625, allocations: 4 kB / 340.9 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1625, allocations: 0 / 340.9 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.1636, allocations: 0.68 MB / 341.6 MB, free: 5.227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.1636, allocations: 4 kB / 341.6 MB, free: 5.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.1637, allocations: 19.98 kB / 341.6 MB, free: 5.203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001915/0.1639, allocations: 81.61 kB / 341.7 MB, free: 5.117 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.823e-05/0.1639, allocations: 7.984 kB / 341.7 MB, free: 5.109 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002515/0.1665, allocations: 3.036 MB / 344.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1665, allocations: 0 / 344.7 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006586/0.1671, allocations: 384.8 kB / 345.1 MB, free: 1.398 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.553e-05/0.1672, allocations: 104.8 kB / 345.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.1673, allocations: 8 kB / 345.2 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002406/0.1675, allocations: 23.97 kB / 345.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.874e-05/0.1676, allocations: 27.91 kB / 345.3 MB, free: 1.219 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.1677, allocations: 12.19 kB / 345.3 MB, free: 1.207 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000198/0.1679, allocations: 186 kB / 345.5 MB, free: 1.023 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1679, allocations: 0 / 345.5 MB, free: 1.023 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004061/0.1683, allocations: 91.75 kB / 345.5 MB, free: 0.9336 MB / 286.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.001052/0.1693, allocations: 0.9245 MB / 346.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000852/0.1702, allocations: 453.1 kB / 346.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/0.1702, allocations: 0 / 346.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000457/0.1707, allocations: 349.3 kB / 347.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005507/0.1713, allocations: 52.45 kB / 347.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.1753, allocations: 2.814 MB / 350.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.1757, allocations: 0.7679 MB / 350.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001568/0.1759, allocations: 30.27 kB / 350.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.1761, allocations: 87.41 kB / 351 MB, free: 11.26 MB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.1761, allocations: 0 / 351 MB, free: 11.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.2049, allocations: 6.139 MB / 357.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.2052, allocations: 237.2 kB / 357.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.252, allocations: 0 / 357.4 MB, free: 4.84 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches