Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.461/1.461, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 59.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1062, allocations: 53.33 MB / 426.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003505/0.1097, allocations: 2.176 MB / 428.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.1108, allocations: 0.6077 MB / 429.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.356e-05/0.1109, allocations: 7.938 kB / 429.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.111, allocations: 23.78 kB / 429.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.867e-05/0.1111, allocations: 47.61 kB / 429.2 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002355/0.1113, allocations: 43.89 kB / 429.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002131/0.1115, allocations: 163.2 kB / 429.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.1117, allocations: 33.47 kB / 429.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.1118, allocations: 75.72 kB / 429.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.1119, allocations: 71.62 kB / 429.6 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.112, allocations: 16 kB / 429.6 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.237e-05/0.112, allocations: 24 kB / 429.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.144e-05/0.1121, allocations: 27.91 kB / 429.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.125e-05/0.1121, allocations: 71.61 kB / 429.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002368/0.1124, allocations: 171.3 kB / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1124, allocations: 0 / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1124, allocations: 0 / 429.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1124, allocations: 0 / 429.9 MB, free: 1.199 MB / 350.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.0006442/0.113, allocations: 455 kB / 430.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1131, allocations: 8.031 kB / 430.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.561e-05/0.1131, allocations: 42.75 kB / 430.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.1133, allocations: 28.83 kB / 430.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.1136, allocations: 218.2 kB / 430.6 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.1136, allocations: 8.594 kB / 430.6 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.1136, allocations: 12.38 kB / 430.6 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.1139, allocations: 127.6 kB / 430.7 MB, free: 224 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1139, allocations: 4 kB / 430.7 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.1139, allocations: 4 kB / 430.8 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1139, allocations: 4 kB / 430.8 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.1141, allocations: 72.67 kB / 430.8 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008649/0.115, allocations: 0.6018 MB / 431.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.1152, allocations: 86.56 kB / 431.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.928e-05/0.1153, allocations: 32.97 kB / 431.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.321e-05/0.1153, allocations: 0 / 431.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.337e-05/0.1154, allocations: 30.56 kB / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 8.72e-07/0.1154, allocations: 0 / 431.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007044/0.1161, allocations: 255.4 kB / 431.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.1161, allocations: 55.41 kB / 431.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.1162, allocations: 152 kB / 432 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.1163, allocations: 33.7 kB / 432.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.1163, allocations: 116.2 kB / 432.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.1164, allocations: 23.78 kB / 432.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.1164, allocations: 25.66 kB / 432.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1165, allocations: 322.8 kB / 432.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.642e-05/0.1166, allocations: 23.98 kB / 432.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.885e-05/0.1167, allocations: 46.5 kB / 432.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.1168, allocations: 70.5 kB / 432.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1168, allocations: 0 / 432.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002961/0.1171, allocations: 150.2 kB / 432.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.1171, allocations: 8.062 kB / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1171, allocations: 4 kB / 432.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001784/0.1173, allocations: 28.84 kB / 432.9 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.683e-05/0.1174, allocations: 15.98 kB / 432.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/0.119, allocations: 1.688 MB / 434.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.913e-05/0.1191, allocations: 12.05 kB / 434.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.1191, allocations: 4 kB / 434.6 MB, free: 12.04 MB / 366.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.0001104/0.1192, allocations: 125.7 kB / 434.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.658e-05/0.1192, allocations: 15.94 kB / 434.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.005e-05/0.1193, allocations: 8.719 kB / 434.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1193, allocations: 0 / 434.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.42e-07/0.1193, allocations: 0 / 434.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1193, allocations: 4 kB / 434.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.1195, allocations: 217.5 kB / 434.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1195, allocations: 4 kB / 434.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.759e-05/0.1195, allocations: 7.984 kB / 435 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.1197, allocations: 32.84 kB / 435 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1197, allocations: 0 / 435 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/0.1211, allocations: 1.678 MB / 436.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1211, allocations: 0 / 436.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003153/0.1214, allocations: 220.3 kB / 436.9 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.05e-05/0.1215, allocations: 85.06 kB / 437 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.185e-05/0.1215, allocations: 0 / 437 MB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.1216, allocations: 4.234 kB / 437 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.1217, allocations: 15.97 kB / 437 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.1217, allocations: 3.938 kB / 437 MB, free: 9.395 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.488e-05/0.1218, allocations: 122 kB / 437.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1218, allocations: 0 / 437.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003362/0.1221, allocations: 43.89 kB / 437.1 MB, free: 9.234 MB / 366.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.0006268/0.1227, allocations: 0.7444 MB / 437.9 MB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003927/0.1231, allocations: 194.5 kB / 438.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1231, allocations: 0 / 438.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002213/0.1233, allocations: 154.6 kB / 438.2 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.1236, allocations: 8 kB / 438.2 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.1256, allocations: 1.726 MB / 440 MB, free: 6.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.1259, allocations: 0.708 MB / 440.7 MB, free: 5.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.735e-05/0.126, allocations: 4.438 kB / 440.7 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.343e-05/0.126, allocations: 35.42 kB / 440.7 MB, free: 5.48 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.126, allocations: 0 / 440.7 MB, free: 5.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02899/0.155, allocations: 3.081 MB / 443.8 MB, free: 2.508 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.29, allocations: 0 / 443.8 MB, free: 2.508 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.890779153909534]