Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",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.001639/0.001638, allocations: 101.8 kB / 16.5 MB, free: 6.648 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.00168/0.00168, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.453/1.453, allocations: 222.9 MB / 241.1 MB, free: 13.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 46.81 kB / 300.1 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1323, allocations: 49.44 MB / 349.5 MB, free: 4.512 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.005416/0.1378, allocations: 2.188 MB / 351.7 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.1394, allocations: 0.5416 MB / 352.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001767/0.1396, allocations: 0 / 352.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.1398, allocations: 15.91 kB / 352.2 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.14, allocations: 43.62 kB / 352.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.1403, allocations: 31.97 kB / 352.3 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002884/0.1406, allocations: 147.3 kB / 352.5 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.1409, allocations: 57.44 kB / 352.5 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.1411, allocations: 59.72 kB / 352.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.1412, allocations: 63.7 kB / 352.6 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.1413, allocations: 8 kB / 352.7 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.94e-05/0.1414, allocations: 12 kB / 352.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.368e-05/0.1415, allocations: 27.91 kB / 352.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.1416, allocations: 63.67 kB / 352.8 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.1419, allocations: 155.7 kB / 352.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1419, allocations: 4 kB / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1419, allocations: 0 / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1419, allocations: 0 / 352.9 MB, free: 1.078 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0009475/0.1429, allocations: 443.2 kB / 353.3 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.1429, allocations: 11.97 kB / 353.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.372e-05/0.143, allocations: 50.67 kB / 353.4 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/0.1432, allocations: 16.75 kB / 353.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.1435, allocations: 200.2 kB / 353.6 MB, free: 280 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.172e-05/0.1436, allocations: 12.61 kB / 353.6 MB, free: 268 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.197e-05/0.1436, allocations: 12.38 kB / 353.6 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.144, allocations: 123.6 kB / 353.8 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.144, allocations: 0 / 353.8 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.1441, allocations: 4 kB / 353.8 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.1441, allocations: 4 kB / 353.8 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.1444, allocations: 76.66 kB / 353.8 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00127/0.1457, allocations: 0.6172 MB / 354.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.1461, allocations: 82.56 kB / 354.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.1463, allocations: 36.97 kB / 354.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.1463, allocations: 0 / 354.6 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.1464, allocations: 30.56 kB / 354.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.763e-06/0.1464, allocations: 0 / 354.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.001082/0.1475, allocations: 263.5 kB / 354.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.1475, allocations: 51.41 kB / 354.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.1477, allocations: 141.8 kB / 355.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.1478, allocations: 25.7 kB / 355.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.842e-05/0.1479, allocations: 128 kB / 355.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.1479, allocations: 27.66 kB / 355.2 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.531e-05/0.148, allocations: 21.7 kB / 355.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1482, allocations: 318.8 kB / 355.6 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.1483, allocations: 27.92 kB / 355.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.1484, allocations: 42.62 kB / 355.6 MB, free: 14.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.1487, allocations: 66.56 kB / 355.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1487, allocations: 3.938 kB / 355.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004759/0.1492, allocations: 134.3 kB / 355.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.1492, allocations: 8 kB / 355.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1492, allocations: 0 / 355.8 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/0.1495, allocations: 40.89 kB / 355.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.404e-05/0.1496, allocations: 8 kB / 355.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002241/0.1519, allocations: 1.529 MB / 357.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.152, allocations: 7.984 kB / 357.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.152, allocations: 0 / 357.4 MB, free: 12.11 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 (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.0001443/0.1522, allocations: 125.9 kB / 357.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.836e-05/0.1523, allocations: 7.906 kB / 357.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.569e-05/0.1523, allocations: 16.7 kB / 357.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1523, allocations: 3.984 kB / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-06/0.1523, allocations: 128 / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1523, allocations: 0 / 357.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/0.1527, allocations: 217.6 kB / 357.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1527, allocations: 0 / 357.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.304e-05/0.1528, allocations: 3.984 kB / 357.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002083/0.153, allocations: 40.84 kB / 357.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.153, allocations: 11.86 kB / 357.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001907/0.155, allocations: 1.502 MB / 359.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.155, allocations: 0 / 359.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004785/0.1555, allocations: 212.2 kB / 359.6 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.168e-05/0.1556, allocations: 85 kB / 359.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.1556, allocations: 8.125 kB / 359.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001801/0.1558, allocations: 12.06 kB / 359.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.1559, allocations: 11.98 kB / 359.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.1559, allocations: 0 / 359.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.156, allocations: 110 kB / 359.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.156, allocations: 4 kB / 359.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006614/0.1567, allocations: 43.84 kB / 359.8 MB, free: 9.484 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 (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.0008735/0.1576, allocations: 0.7443 MB / 360.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.1582, allocations: 186.6 kB / 360.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1582, allocations: 4 kB / 360.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.1585, allocations: 154.8 kB / 360.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.159, allocations: 14.12 kB / 360.9 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003127/0.1622, allocations: 1.748 MB / 362.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000393/0.1626, allocations: 0.7043 MB / 363.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.562e-05/0.1627, allocations: 12.36 kB / 363.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.501e-05/0.1628, allocations: 27.44 kB / 363.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1628, allocations: 0 / 363.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.1829, allocations: 2.712 MB / 366.1 MB, free: 3.125 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002829/0.1832, allocations: 226.7 kB / 366.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.065, allocations: 0 / 366.3 MB, free: 2.867 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches