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.001622/0.001622, allocations: 107.1 kB / 16.62 MB, free: 6.812 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.001753/0.001753, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.415/1.415, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 50.05 kB / 300.2 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1099, allocations: 49.44 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.005669/0.1157, allocations: 2.173 MB / 351.9 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.117, allocations: 0.5454 MB / 352.4 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1171, allocations: 4 kB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.1173, allocations: 11.86 kB / 352.4 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001201/0.1174, allocations: 39.69 kB / 352.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002797/0.1177, allocations: 43.89 kB / 352.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00027/0.118, allocations: 155.3 kB / 352.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002169/0.1182, allocations: 53.45 kB / 352.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.1184, allocations: 63.78 kB / 352.8 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.1186, allocations: 67.7 kB / 352.8 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.1186, allocations: 12 kB / 352.8 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.77e-05/0.1187, allocations: 23.92 kB / 352.9 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.34e-05/0.1188, allocations: 27.92 kB / 352.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1189, allocations: 71.61 kB / 353 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.1192, allocations: 159.7 kB / 353.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1193, allocations: 0 / 353.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1193, allocations: 0 / 353.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1193, allocations: 0 / 353.1 MB, free: 1.203 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.0008443/0.1201, allocations: 447.1 kB / 353.6 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.1202, allocations: 12.03 kB / 353.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.119e-05/0.1203, allocations: 42.75 kB / 353.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.1204, allocations: 20.73 kB / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002943/0.1207, allocations: 204.1 kB / 353.8 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.1208, allocations: 8.609 kB / 353.8 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.1208, allocations: 8.375 kB / 353.8 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004013/0.1212, allocations: 119.6 kB / 354 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.1213, allocations: 4 kB / 354 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.1213, allocations: 8 kB / 354 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.1213, allocations: 3.984 kB / 354 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003214/0.1217, allocations: 88.58 kB / 354.1 MB, free: 160 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.123, allocations: 0.6017 MB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004357/0.1234, allocations: 90.5 kB / 354.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.1236, allocations: 32.97 kB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.1236, allocations: 4 kB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.1237, allocations: 34.56 kB / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.104e-06/0.1237, allocations: 0 / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.001083/0.1248, allocations: 255.5 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.579e-05/0.1248, allocations: 55.41 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.1251, allocations: 145.8 kB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.1251, allocations: 25.7 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.1252, allocations: 128 kB / 355.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.1253, allocations: 15.66 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.366e-05/0.1254, allocations: 29.7 kB / 355.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1255, allocations: 322.8 kB / 355.8 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.1256, allocations: 16.06 kB / 355.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.1258, allocations: 50.55 kB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.126, allocations: 74.48 kB / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.126, allocations: 0 / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004884/0.1265, allocations: 138.2 kB / 356.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.1266, allocations: 4.188 kB / 356.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1266, allocations: 4 kB / 356.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000288/0.1269, allocations: 40.77 kB / 356.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.467e-05/0.127, allocations: 8 kB / 356.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.1295, allocations: 1.708 MB / 357.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.1296, allocations: 4 kB / 357.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.1297, allocations: 0 / 357.8 MB, free: 12.05 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.0001446/0.1298, allocations: 125.9 kB / 357.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.049e-05/0.1299, allocations: 11.84 kB / 358 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.1299, allocations: 12.7 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.13, allocations: 8.062 kB / 358 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.13, allocations: 4 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.13, allocations: 0 / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003608/0.1304, allocations: 209.6 kB / 358.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/0.1304, allocations: 3.938 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.271e-05/0.1304, allocations: 4 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.1306, allocations: 40.83 kB / 358.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.1307, allocations: 4 kB / 358.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/0.1327, allocations: 1.677 MB / 359.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1327, allocations: 4.031 kB / 359.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.1332, allocations: 220.3 kB / 360.1 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.022e-05/0.1333, allocations: 85 kB / 360.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.1333, allocations: 4.047 kB / 360.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001747/0.1335, allocations: 11.98 kB / 360.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.391e-05/0.1335, allocations: 7.984 kB / 360.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.1336, allocations: 0 / 360.2 MB, free: 9.395 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.1337, allocations: 118 kB / 360.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1337, allocations: 0 / 360.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006433/0.1344, allocations: 39.84 kB / 360.4 MB, free: 9.242 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.0008354/0.1352, allocations: 0.7521 MB / 361.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005534/0.1358, allocations: 190.5 kB / 361.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1358, allocations: 0 / 361.3 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.1361, allocations: 154.6 kB / 361.5 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.1366, allocations: 22.39 kB / 361.5 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.1396, allocations: 1.749 MB / 363.3 MB, free: 6.234 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004945/0.1402, allocations: 0.708 MB / 364 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.614e-05/0.1402, allocations: 8.422 kB / 364 MB, free: 5.492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.331e-05/0.1403, allocations: 27.42 kB / 364 MB, free: 5.465 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1403, allocations: 0 / 364 MB, free: 5.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.1613, allocations: 2.82 MB / 366.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/0.1616, allocations: 236.1 kB / 367 MB, free: 2.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.945/2.106, allocations: 0 / 367 MB, free: 2.508 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