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.001708/0.001708, allocations: 107.1 kB / 20.44 MB, free: 1.172 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.001598/0.001598, allocations: 207.4 kB / 23.73 MB, free: 4.379 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.367/1.367, allocations: 230.6 MB / 257.5 MB, free: 7.781 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.001489/0.001489, allocations: 43.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2534, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003547/0.257, allocations: 2.089 MB / 433.2 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00106/0.258, allocations: 0.5844 MB / 433.8 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.872e-05/0.2581, allocations: 4 kB / 433.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2583, allocations: 23.78 kB / 433.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.013e-05/0.2583, allocations: 43.58 kB / 433.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.2586, allocations: 51.86 kB / 433.9 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002064/0.2588, allocations: 159.3 kB / 434 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.2589, allocations: 47.33 kB / 434.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.2591, allocations: 67.73 kB / 434.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.2592, allocations: 63.7 kB / 434.2 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.2592, allocations: 12 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.338e-05/0.2593, allocations: 27.98 kB / 434.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.127e-05/0.2593, allocations: 23.92 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.341e-05/0.2594, allocations: 67.66 kB / 434.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.2597, allocations: 171.3 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2597, allocations: 0 / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2597, allocations: 0 / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.2597, allocations: 4 kB / 434.5 MB, free: 3.219 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.0006102/0.2603, allocations: 369.9 kB / 434.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2603, allocations: 15.97 kB / 434.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.762e-05/0.2604, allocations: 42.73 kB / 434.9 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.2605, allocations: 32.83 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.2608, allocations: 150.3 kB / 435.1 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.2608, allocations: 12.59 kB / 435.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.2608, allocations: 12.38 kB / 435.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.2611, allocations: 149.3 kB / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.2611, allocations: 0 / 435.3 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.2611, allocations: 8 kB / 435.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.2611, allocations: 4 kB / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.2613, allocations: 76.66 kB / 435.4 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007901/0.2621, allocations: 478.3 kB / 435.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.2624, allocations: 82.62 kB / 435.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.2625, allocations: 32.97 kB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.2625, allocations: 0 / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.2626, allocations: 30.56 kB / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.2626, allocations: 0 / 436 MB, free: 1.602 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000666/0.2632, allocations: 186.2 kB / 436.2 MB, free: 1.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.2633, allocations: 51.41 kB / 436.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.2634, allocations: 161.6 kB / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.2634, allocations: 25.7 kB / 436.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.2636, allocations: 124.2 kB / 436.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.2636, allocations: 27.78 kB / 436.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.2636, allocations: 17.72 kB / 436.6 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2638, allocations: 326.8 kB / 436.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.829e-05/0.2638, allocations: 23.98 kB / 436.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.251e-05/0.2639, allocations: 46.56 kB / 436.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.2641, allocations: 70.5 kB / 437 MB, free: 500 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.2641, allocations: 0 / 437 MB, free: 500 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002917/0.2644, allocations: 134.3 kB / 437.1 MB, free: 356 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.2644, allocations: 8.062 kB / 437.1 MB, free: 348 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2644, allocations: 4 kB / 437.2 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.2646, allocations: 28.84 kB / 437.2 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.649e-05/0.2646, allocations: 15.92 kB / 437.2 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001602/0.2662, allocations: 1.586 MB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.905e-05/0.2663, allocations: 4 kB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.2663, allocations: 7.938 kB / 438.8 MB, free: 14.58 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.0001062/0.2664, allocations: 121.8 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.114e-05/0.2664, allocations: 7.953 kB / 438.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.2665, allocations: 20.7 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.2665, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.2665, allocations: 0 / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.2665, allocations: 4 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.2667, allocations: 180.6 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2667, allocations: 0 / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.898e-05/0.2667, allocations: 7.984 kB / 439.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001184/0.2668, allocations: 28.84 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.2668, allocations: 4.188 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/0.2683, allocations: 1.574 MB / 440.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.2683, allocations: 3.938 kB / 440.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003107/0.2686, allocations: 212.2 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.059e-05/0.2686, allocations: 11.94 kB / 441 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.2686, allocations: 4 kB / 441 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-05/0.2687, allocations: 4 kB / 441 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.2688, allocations: 11.92 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2688, allocations: 0 / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.365e-05/0.2689, allocations: 126.1 kB / 441.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2689, allocations: 0 / 441.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003369/0.2692, allocations: 43.89 kB / 441.1 MB, free: 12.04 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.0006645/0.2699, allocations: 0.7366 MB / 441.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004278/0.2703, allocations: 186.6 kB / 442.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2703, allocations: 4.125 kB / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002289/0.2705, allocations: 166.5 kB / 442.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.2708, allocations: 10.97 kB / 442.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002223/0.273, allocations: 1.723 MB / 444 MB, free: 9.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.2732, allocations: 98.27 kB / 444.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.744e-05/0.2732, allocations: 12.47 kB / 444.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.633e-05/0.2733, allocations: 31.42 kB / 444.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2733, allocations: 0 / 444.1 MB, free: 8.914 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.3064, allocations: 3.518 MB / 447.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.07, allocations: 3.047 kB / 447.6 MB, free: 5.543 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.383063107001362]