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.001607/0.001607, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001997/0.001997, allocations: 195.7 kB / 24.5 MB, free: 4.008 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.356/1.356, allocations: 225.6 MB / 253.3 MB, free: 13.07 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="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.001416/0.001416, allocations: 43.94 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2547, allocations: 52.18 MB / 423.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003421/0.2581, allocations: 2.168 MB / 425.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.259, allocations: 0.5494 MB / 426.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.367e-05/0.2591, allocations: 4 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.2592, allocations: 23.78 kB / 426.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.711e-05/0.2593, allocations: 43.58 kB / 426.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.2595, allocations: 35.95 kB / 426.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.2597, allocations: 163.2 kB / 426.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.2599, allocations: 41.59 kB / 426.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.26, allocations: 71.72 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.2601, allocations: 67.69 kB / 426.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.2602, allocations: 12 kB / 426.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.723e-05/0.2602, allocations: 16 kB / 426.6 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.428e-05/0.2603, allocations: 31.86 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.823e-05/0.2603, allocations: 67.67 kB / 426.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.2606, allocations: 164.2 kB / 426.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2606, allocations: 4 kB / 426.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2606, allocations: 4 kB / 426.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2606, allocations: 0 / 426.9 MB, free: 11.18 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.0006028/0.2612, allocations: 369.9 kB / 427.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2612, allocations: 8.031 kB / 427.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.226e-05/0.2612, allocations: 4.422 kB / 427.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2613, allocations: 46.73 kB / 427.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.2615, allocations: 12.89 kB / 427.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002455/0.2617, allocations: 154.2 kB / 427.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.2617, allocations: 8.609 kB / 427.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.2617, allocations: 12.38 kB / 427.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.262, allocations: 124.6 kB / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.262, allocations: 0 / 427.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.262, allocations: 4 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.262, allocations: 7.984 kB / 427.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.2622, allocations: 76.61 kB / 427.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.2631, allocations: 0.5695 MB / 428.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002901/0.2634, allocations: 90.48 kB / 428.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.721e-05/0.2634, allocations: 28.97 kB / 428.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.2635, allocations: 0 / 428.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.2635, allocations: 38.56 kB / 428.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 7.42e-07/0.2635, allocations: 0 / 428.4 MB, free: 9.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006599/0.2642, allocations: 182.3 kB / 428.6 MB, free: 9.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.2642, allocations: 51.41 kB / 428.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.2643, allocations: 144.2 kB / 428.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.2643, allocations: 25.7 kB / 428.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.645e-05/0.2644, allocations: 132.1 kB / 428.9 MB, free: 8.914 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.2645, allocations: 19.8 kB / 428.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.449e-05/0.2645, allocations: 21.72 kB / 429 MB, free: 8.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.2646, allocations: 326.8 kB / 429.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.298e-05/0.2647, allocations: 19.98 kB / 429.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.579e-05/0.2648, allocations: 38.56 kB / 429.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.2649, allocations: 74.48 kB / 429.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2649, allocations: 4 kB / 429.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002813/0.2652, allocations: 138.3 kB / 429.5 MB, free: 8.242 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.2652, allocations: 8 kB / 429.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.2652, allocations: 0 / 429.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/0.2654, allocations: 32.84 kB / 429.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.526e-05/0.2655, allocations: 12.23 kB / 429.6 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001531/0.267, allocations: 1.596 MB / 431.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.267, allocations: 3.938 kB / 431.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.2671, allocations: 4.188 kB / 431.2 MB, free: 6.477 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.0001017/0.2672, allocations: 121.8 kB / 431.3 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.2672, allocations: 15.83 kB / 431.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.212e-05/0.2672, allocations: 20.77 kB / 431.4 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2672, allocations: 4 kB / 431.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-06/0.2672, allocations: 0 / 431.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2672, allocations: 4.031 kB / 431.4 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.2674, allocations: 188.5 kB / 431.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2674, allocations: 0 / 431.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.529e-05/0.2675, allocations: 4 kB / 431.6 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/0.2676, allocations: 36.83 kB / 431.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.2676, allocations: 8.125 kB / 431.6 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001346/0.269, allocations: 1.583 MB / 433.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.269, allocations: 0 / 433.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003497/0.2693, allocations: 212.2 kB / 433.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.441e-05/0.2693, allocations: 3.953 kB / 433.4 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.2693, allocations: 11.98 kB / 433.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.396e-05/0.2694, allocations: 8.062 kB / 433.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.2695, allocations: 3.984 kB / 433.4 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.2695, allocations: 4 kB / 433.4 MB, free: 4.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.396e-05/0.2696, allocations: 111.2 kB / 433.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2696, allocations: 0 / 433.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003314/0.2699, allocations: 35.94 kB / 433.6 MB, free: 3.926 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.0006153/0.2705, allocations: 0.7601 MB / 434.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000402/0.2709, allocations: 186.6 kB / 434.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2709, allocations: 128 / 434.5 MB, free: 2.941 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.2711, allocations: 158.6 kB / 434.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002519/0.2714, allocations: 11.98 kB / 434.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.2734, allocations: 1.699 MB / 436.4 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.2737, allocations: 0.7157 MB / 437.1 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.038e-05/0.2738, allocations: 4.438 kB / 437.1 MB, free: 220 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.131e-05/0.2738, allocations: 27.42 kB / 437.1 MB, free: 192 kB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2738, allocations: 0 / 437.1 MB, free: 192 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.3004, allocations: 3.172 MB / 440.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.16, allocations: 3.516 kB / 440.3 MB, free: 13.16 MB / 350.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.59542920102831]