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.001787/0.001787, allocations: 108 kB / 20.43 MB, free: 1.473 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.001466/0.001466, allocations: 188 kB / 23.72 MB, free: 4.719 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.368/1.368, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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.001481/0.001481, allocations: 47.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2491, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003573/0.2527, allocations: 2.173 MB / 424.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009382/0.2536, allocations: 0.5416 MB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.106e-05/0.2537, allocations: 4 kB / 425.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001178/0.2538, allocations: 23.78 kB / 425.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.712e-05/0.2539, allocations: 47.56 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.2541, allocations: 35.95 kB / 425.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000211/0.2544, allocations: 155.2 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.2545, allocations: 45.59 kB / 425.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2546, allocations: 71.72 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2548, allocations: 67.7 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.2548, allocations: 16 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.636e-05/0.2548, allocations: 16 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.217e-05/0.2549, allocations: 27.86 kB / 425.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.526e-05/0.255, allocations: 67.67 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.2552, allocations: 163.8 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2552, allocations: 0 / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.2552, allocations: 3.984 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.2552, allocations: 4 kB / 426.1 MB, free: 11.14 MB / 334.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.0006294/0.2559, allocations: 369.9 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2559, allocations: 8.031 kB / 426.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.645e-05/0.256, allocations: 42.75 kB / 426.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.884e-05/0.2561, allocations: 20.88 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.2563, allocations: 150.2 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.2563, allocations: 8.609 kB / 426.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.2564, allocations: 8.375 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.2566, allocations: 120.8 kB / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.138e-06/0.2566, allocations: 0 / 426.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.2566, allocations: 15.94 kB / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.2566, allocations: 0 / 426.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.2568, allocations: 84.59 kB / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008396/0.2577, allocations: 0.558 MB / 427.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.258, allocations: 90.61 kB / 427.5 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.561e-05/0.2581, allocations: 28.97 kB / 427.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.2581, allocations: 7.875 kB / 427.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.2581, allocations: 34.56 kB / 427.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.2581, allocations: 0 / 427.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006828/0.2588, allocations: 186.3 kB / 427.8 MB, free: 9.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.11e-05/0.2588, allocations: 51.41 kB / 427.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.259, allocations: 141.8 kB / 428 MB, free: 9.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.916e-05/0.259, allocations: 33.7 kB / 428 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.2591, allocations: 124.1 kB / 428.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.2591, allocations: 23.78 kB / 428.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.041e-05/0.2592, allocations: 21.72 kB / 428.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2593, allocations: 318.8 kB / 428.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.589e-05/0.2594, allocations: 23.98 kB / 428.5 MB, free: 8.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.812e-05/0.2594, allocations: 46.55 kB / 428.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.2596, allocations: 74.5 kB / 428.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2596, allocations: 0 / 428.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002872/0.2599, allocations: 134.3 kB / 428.8 MB, free: 8.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.2599, allocations: 4.062 kB / 428.8 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2599, allocations: 8 kB / 428.8 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001887/0.2601, allocations: 32.84 kB / 428.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.997e-05/0.2602, allocations: 11.98 kB / 428.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/0.262, allocations: 1.575 MB / 430.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.32e-05/0.262, allocations: 7.969 kB / 430.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.262, allocations: 8.062 kB / 430.4 MB, free: 6.445 MB / 334.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.000108/0.2621, allocations: 117.8 kB / 430.5 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.99e-05/0.2622, allocations: 20.08 kB / 430.5 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.166e-05/0.2622, allocations: 12.7 kB / 430.6 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2622, allocations: 3.938 kB / 430.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.2622, allocations: 0 / 430.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.2622, allocations: 8.031 kB / 430.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.2625, allocations: 184.6 kB / 430.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2625, allocations: 7.938 kB / 430.8 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.049e-05/0.2625, allocations: 7.938 kB / 430.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/0.2626, allocations: 32.83 kB / 430.8 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.2626, allocations: 4 kB / 430.8 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001426/0.2641, allocations: 1.579 MB / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2641, allocations: 0 / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003245/0.2644, allocations: 224.4 kB / 432.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.732e-05/0.2644, allocations: 7.953 kB / 432.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.2644, allocations: 0 / 432.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.879e-05/0.2645, allocations: 7.984 kB / 432.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.2645, allocations: 11.98 kB / 432.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.2645, allocations: 0 / 432.6 MB, free: 4.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.718e-05/0.2646, allocations: 113.8 kB / 432.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2646, allocations: 4 kB / 432.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003452/0.265, allocations: 39.94 kB / 432.8 MB, free: 3.887 MB / 334.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.0006543/0.2656, allocations: 0.7404 MB / 433.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004077/0.266, allocations: 202.5 kB / 433.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.266, allocations: 0 / 433.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.2663, allocations: 150.6 kB / 433.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.2665, allocations: 11.98 kB / 433.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.2686, allocations: 1.711 MB / 435.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.2689, allocations: 0.7041 MB / 436.3 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.224e-05/0.269, allocations: 8.375 kB / 436.3 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.445e-05/0.269, allocations: 35.42 kB / 436.3 MB, free: 152 kB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.269, allocations: 0 / 436.3 MB, free: 152 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0328/0.3018, allocations: 3.136 MB / 439.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.53, allocations: 8.797 kB / 439.5 MB, free: 13.15 MB / 350.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/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.861299382988364]