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.001326/0.001326, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.001254/0.001254, allocations: 190.6 kB / 21.43 MB, free: 1.641 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.354/1.354, allocations: 225.6 MB / 249.8 MB, free: 3.496 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 43.94 kB / 366.4 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.09122, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003414/0.09464, allocations: 2.143 MB / 420.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009717/0.09561, allocations: 0.5455 MB / 421.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.755e-05/0.0957, allocations: 3.938 kB / 421.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.09582, allocations: 23.78 kB / 421.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.514e-05/0.09591, allocations: 39.62 kB / 421.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.09612, allocations: 43.89 kB / 421.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.09633, allocations: 163.2 kB / 421.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.09649, allocations: 41.47 kB / 421.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.09661, allocations: 67.72 kB / 421.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000113/0.09672, allocations: 59.77 kB / 421.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.09675, allocations: 12 kB / 421.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.938e-05/0.09682, allocations: 16 kB / 421.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.903e-05/0.09686, allocations: 31.86 kB / 421.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.042e-05/0.09694, allocations: 75.64 kB / 421.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.09719, allocations: 163.3 kB / 421.9 MB, free: 9.168 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.09719, allocations: 7.938 kB / 421.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.0972, allocations: 0 / 421.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.0972, allocations: 0 / 421.9 MB, free: 9.16 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.0006356/0.09784, allocations: 451 kB / 422.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.09787, allocations: 8.031 kB / 422.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.214e-05/0.0979, allocations: 4.422 kB / 422.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.266e-05/0.09794, allocations: 42.73 kB / 422.4 MB, free: 8.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.891e-05/0.09803, allocations: 24.89 kB / 422.4 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.09831, allocations: 208.1 kB / 422.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.09832, allocations: 8.609 kB / 422.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/0.09835, allocations: 12.38 kB / 422.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.0986, allocations: 124.1 kB / 422.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.09861, allocations: 0 / 422.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.09862, allocations: 4 kB / 422.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.09863, allocations: 4 kB / 422.8 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.09881, allocations: 76.66 kB / 422.9 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008729/0.09968, allocations: 0.6055 MB / 423.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002903/0.09997, allocations: 78.62 kB / 423.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.308e-05/0.1001, allocations: 28.97 kB / 423.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1001, allocations: 8 kB / 423.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1001, allocations: 34.56 kB / 423.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.1001, allocations: 0 / 423.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007417/0.1008, allocations: 259.4 kB / 423.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.1009, allocations: 51.41 kB / 423.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.101, allocations: 140.2 kB / 424.1 MB, free: 6.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.101, allocations: 29.7 kB / 424.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.8e-05/0.1011, allocations: 132 kB / 424.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.1012, allocations: 23.8 kB / 424.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/0.1012, allocations: 21.72 kB / 424.3 MB, free: 6.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1013, allocations: 322.8 kB / 424.6 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.701e-05/0.1014, allocations: 23.98 kB / 424.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.892e-05/0.1015, allocations: 50.48 kB / 424.6 MB, free: 6.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.1016, allocations: 70.5 kB / 424.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1016, allocations: 4 kB / 424.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002875/0.1019, allocations: 134.3 kB / 424.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.1019, allocations: 8 kB / 424.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.1019, allocations: 0 / 424.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.1021, allocations: 28.84 kB / 424.9 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.621e-05/0.1022, allocations: 19.98 kB / 424.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.1038, allocations: 1.7 MB / 426.6 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.782e-05/0.1039, allocations: 7.938 kB / 426.6 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.1039, allocations: 0 / 426.6 MB, free: 4.012 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 0.0001113/0.104, allocations: 125.8 kB / 426.7 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.535e-05/0.104, allocations: 15.95 kB / 426.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.949e-05/0.1041, allocations: 8.719 kB / 426.8 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.1041, allocations: 4 kB / 426.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-07/0.1041, allocations: 0 / 426.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.1041, allocations: 0 / 426.8 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.1043, allocations: 217.5 kB / 427 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.1043, allocations: 0 / 427 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.1043, allocations: 7.984 kB / 427 MB, free: 3.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001179/0.1045, allocations: 28.84 kB / 427 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.1045, allocations: 12 kB / 427 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.1059, allocations: 1.678 MB / 428.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1059, allocations: 0 / 428.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.1062, allocations: 220.2 kB / 428.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.1063, allocations: 89.02 kB / 429 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.1063, allocations: 4.062 kB / 429 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.597e-05/0.1064, allocations: 4 kB / 429 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.866e-05/0.1064, allocations: 11.92 kB / 429 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.1064, allocations: 8 kB / 429 MB, free: 1.359 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.201e-05/0.1065, allocations: 107.2 kB / 429.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1065, allocations: 0 / 429.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.1069, allocations: 43.89 kB / 429.2 MB, free: 1.211 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.0006168/0.1075, allocations: 0.7482 MB / 429.9 MB, free: 444 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003878/0.1079, allocations: 186.6 kB / 430.1 MB, free: 244 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1079, allocations: 8.125 kB / 430.1 MB, free: 236 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.1081, allocations: 158.5 kB / 430.3 MB, free: 64 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002433/0.1083, allocations: 14.19 kB / 430.3 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/0.1103, allocations: 1.715 MB / 432 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003264/0.1106, allocations: 0.708 MB / 432.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.663e-05/0.1107, allocations: 4.422 kB / 432.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.82e-05/0.1107, allocations: 35.42 kB / 432.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1107, allocations: 0 / 432.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.1344, allocations: 3.073 MB / 435.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.45, allocations: 23.3 kB / 435.8 MB, free: 10.49 MB / 366.1 MB " [Timeout remaining time 648] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.02781107701594]