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.001562/0.001562, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001529/0.001529, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.473/1.473, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.001211, allocations: 47.28 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1202, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004099/0.1244, allocations: 2.126 MB / 352.3 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1255, allocations: 0.5531 MB / 352.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.1257, allocations: 4 kB / 352.8 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1259, allocations: 23.78 kB / 352.9 MB, free: 1.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.126, allocations: 35.64 kB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002661/0.1263, allocations: 43.89 kB / 352.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.1265, allocations: 163.2 kB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1267, allocations: 53.45 kB / 353.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.1268, allocations: 63.72 kB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.127, allocations: 71.69 kB / 353.3 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.127, allocations: 12 kB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.11e-05/0.1271, allocations: 16 kB / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.122e-05/0.1271, allocations: 23.92 kB / 353.3 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.448e-05/0.1272, allocations: 83.59 kB / 353.4 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002135/0.1274, allocations: 159.7 kB / 353.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1274, allocations: 0 / 353.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.103e-06/0.1274, allocations: 0 / 353.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.1274, allocations: 0 / 353.6 MB, free: 0.8945 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.0005921/0.128, allocations: 439.1 kB / 354 MB, free: 424 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1281, allocations: 12.03 kB / 354 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.281e-05/0.1281, allocations: 46.73 kB / 354.1 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.062e-05/0.1282, allocations: 20.75 kB / 354.1 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.1284, allocations: 200.1 kB / 354.3 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.1285, allocations: 8.609 kB / 354.3 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.1285, allocations: 12.38 kB / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.1288, allocations: 120.9 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.1288, allocations: 3.984 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.1288, allocations: 4 kB / 354.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.1288, allocations: 0 / 354.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.129, allocations: 80.66 kB / 354.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00091/0.1299, allocations: 0.6093 MB / 355.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.1302, allocations: 86.62 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.159e-05/0.1303, allocations: 32.97 kB / 355.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.1303, allocations: 7.922 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.1304, allocations: 34.56 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.1304, allocations: 0 / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007067/0.1311, allocations: 263.3 kB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.1311, allocations: 51.41 kB / 355.6 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.1313, allocations: 148.7 kB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.1313, allocations: 33.64 kB / 355.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.156e-05/0.1314, allocations: 124 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.556e-05/0.1315, allocations: 19.66 kB / 355.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.1315, allocations: 21.72 kB / 355.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.1317, allocations: 318.8 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.673e-05/0.1318, allocations: 23.98 kB / 356.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.687e-05/0.1318, allocations: 46.56 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.132, allocations: 70.5 kB / 356.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.132, allocations: 0 / 356.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002834/0.1323, allocations: 134.3 kB / 356.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1323, allocations: 15.03 kB / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1323, allocations: 0 / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001883/0.1325, allocations: 28.84 kB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.368e-05/0.1326, allocations: 19.92 kB / 356.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001683/0.1343, allocations: 1.697 MB / 358.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.671e-05/0.1344, allocations: 4.031 kB / 358.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.1344, allocations: 4 kB / 358.3 MB, free: 11.76 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.0001205/0.1345, allocations: 121.8 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.1346, allocations: 15.84 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.231e-05/0.1346, allocations: 8.719 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1346, allocations: 4.062 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1346, allocations: 4 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1346, allocations: 0 / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.1348, allocations: 213.6 kB / 358.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.1349, allocations: 4.125 kB / 358.6 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-05/0.1349, allocations: 7.984 kB / 358.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001192/0.135, allocations: 32.78 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.1351, allocations: 7.938 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.1364, allocations: 1.685 MB / 360.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1364, allocations: 0 / 360.4 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.1367, allocations: 220.2 kB / 360.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.024e-05/0.1368, allocations: 89.08 kB / 360.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.1368, allocations: 0 / 360.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.595e-05/0.1369, allocations: 4 kB / 360.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.137, allocations: 15.92 kB / 360.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-06/0.137, allocations: 4 kB / 360.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.454e-05/0.1371, allocations: 107.2 kB / 360.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1371, allocations: 0 / 360.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.1374, allocations: 43.84 kB / 360.8 MB, free: 8.949 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.0005736/0.138, allocations: 0.7445 MB / 361.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003955/0.1384, allocations: 194.8 kB / 361.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1384, allocations: 0 / 361.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002065/0.1386, allocations: 166.5 kB / 361.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.1389, allocations: 12 kB / 361.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.141, allocations: 1.694 MB / 363.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.1414, allocations: 0.7119 MB / 364.4 MB, free: 5.254 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.59e-05/0.1414, allocations: 4.438 kB / 364.4 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.038e-05/0.1415, allocations: 31.42 kB / 364.4 MB, free: 5.219 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1415, allocations: 0 / 364.4 MB, free: 5.219 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8733/1.015, allocations: 2.935 MB / 367.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/13.42, allocations: 7.938 kB / 367.3 MB, free: 2.363 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