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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 119.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 185.2 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 225.6 MB / 249.1 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 55.91 kB / 365.7 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.103, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003506/0.1065, allocations: 2.151 MB / 419.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009127/0.1074, allocations: 0.5416 MB / 420.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.481e-05/0.1075, allocations: 4 kB / 420.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.1077, allocations: 15.8 kB / 420.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.872e-05/0.1077, allocations: 47.56 kB / 420.5 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.108, allocations: 47.81 kB / 420.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.1082, allocations: 155.3 kB / 420.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.1083, allocations: 41.47 kB / 420.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.1084, allocations: 67.72 kB / 420.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.1085, allocations: 59.77 kB / 420.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.502e-05/0.1085, allocations: 12 kB / 420.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.6e-05/0.1086, allocations: 23.94 kB / 420.9 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.104e-05/0.1086, allocations: 27.86 kB / 421 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.1087, allocations: 71.67 kB / 421 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.109, allocations: 171.2 kB / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.109, allocations: 0 / 421.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.109, allocations: 4 kB / 421.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.109, allocations: 0 / 421.2 MB, free: 9.191 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.0006335/0.1096, allocations: 445.4 kB / 421.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1096, allocations: 8.031 kB / 421.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.825e-05/0.1097, allocations: 50.67 kB / 421.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.39e-05/0.1098, allocations: 12.89 kB / 421.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.1101, allocations: 208.1 kB / 421.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1101, allocations: 8.609 kB / 421.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.156e-05/0.1101, allocations: 16.38 kB / 421.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.1103, allocations: 124.3 kB / 422.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.1104, allocations: 0 / 422.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.1104, allocations: 4 kB / 422.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1104, allocations: 4 kB / 422.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.1106, allocations: 76.61 kB / 422.1 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008515/0.1114, allocations: 0.6136 MB / 422.8 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.1117, allocations: 82.56 kB / 422.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.589e-05/0.1118, allocations: 32.97 kB / 422.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.591e-05/0.1118, allocations: 0 / 422.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.1118, allocations: 34.56 kB / 422.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.1118, allocations: 0 / 422.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006762/0.1125, allocations: 255.4 kB / 423.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.1125, allocations: 55.41 kB / 423.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.1127, allocations: 141.8 kB / 423.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.1127, allocations: 29.7 kB / 423.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.379e-05/0.1128, allocations: 124.1 kB / 423.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.1128, allocations: 23.78 kB / 423.5 MB, free: 6.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.505e-05/0.1128, allocations: 25.72 kB / 423.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.113, allocations: 318.8 kB / 423.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.121e-05/0.113, allocations: 23.98 kB / 423.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.347e-05/0.1131, allocations: 46.5 kB / 423.9 MB, free: 6.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001319/0.1132, allocations: 70.5 kB / 424 MB, free: 6.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1132, allocations: 0 / 424 MB, free: 6.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002928/0.1135, allocations: 142.3 kB / 424.1 MB, free: 5.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.1136, allocations: 10.48 kB / 424.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1136, allocations: 0 / 424.1 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001881/0.1137, allocations: 36.84 kB / 424.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.446e-05/0.1138, allocations: 11.98 kB / 424.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001582/0.1154, allocations: 1.694 MB / 425.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.501e-05/0.1154, allocations: 7.938 kB / 425.9 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.1155, allocations: 0 / 425.9 MB, free: 4.055 MB / 350.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 9.76e-05/0.1156, allocations: 121.8 kB / 426 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.1156, allocations: 11.89 kB / 426 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.1156, allocations: 20.73 kB / 426 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1156, allocations: 3.938 kB / 426.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-06/0.1156, allocations: 4 kB / 426.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.1156, allocations: 0 / 426.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.1158, allocations: 217.6 kB / 426.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.1159, allocations: 3.938 kB / 426.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.378e-05/0.1159, allocations: 0 / 426.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001199/0.116, allocations: 40.83 kB / 426.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.116, allocations: 0 / 426.3 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.1174, allocations: 1.678 MB / 428 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1174, allocations: 4.062 kB / 428 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.1177, allocations: 212.2 kB / 428.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.1178, allocations: 89 kB / 428.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.1178, allocations: 4 kB / 428.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.54e-05/0.1179, allocations: 4 kB / 428.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.15e-05/0.1179, allocations: 11.98 kB / 428.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.1179, allocations: 4 kB / 428.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.528e-05/0.118, allocations: 105.2 kB / 428.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.118, allocations: 0 / 428.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003381/0.1184, allocations: 43.89 kB / 428.5 MB, free: 1.262 MB / 350.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.0006027/0.119, allocations: 0.7482 MB / 429.2 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003893/0.1194, allocations: 198.5 kB / 429.4 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1194, allocations: 0 / 429.4 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.1196, allocations: 162.7 kB / 429.6 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002422/0.1198, allocations: 15.39 kB / 429.6 MB, free: 96 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.1218, allocations: 1.707 MB / 431.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.1221, allocations: 0.708 MB / 432 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.551e-05/0.1222, allocations: 4.438 kB / 432 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.935e-05/0.1222, allocations: 39.3 kB / 432 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1222, allocations: 0 / 432 MB, free: 13.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02827/0.1505, allocations: 3.045 MB / 435.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.55, allocations: 12.56 kB / 435.1 MB, free: 10.56 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.0009996 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 15.509587451815605]