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.001548/0.001548, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001663/0.001663, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.401/1.401, allocations: 230.6 MB / 258.3 MB, free: 7.73 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 43.92 kB / 378.5 MB, free: 2.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2561, allocations: 53.37 MB / 431.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003502/0.2596, allocations: 2.087 MB / 434 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.2607, allocations: 0.5844 MB / 434.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.2608, allocations: 4 kB / 434.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001302/0.2609, allocations: 19.78 kB / 434.6 MB, free: 3.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.775e-05/0.261, allocations: 51.56 kB / 434.6 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.2613, allocations: 51.88 kB / 434.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.2615, allocations: 155.2 kB / 434.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.2617, allocations: 41.66 kB / 434.9 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.2619, allocations: 67.72 kB / 434.9 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000112/0.262, allocations: 67.7 kB / 435 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.887e-05/0.262, allocations: 16 kB / 435 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.824e-05/0.2621, allocations: 24 kB / 435 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.963e-05/0.2621, allocations: 35.84 kB / 435.1 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.486e-05/0.2622, allocations: 55.78 kB / 435.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002535/0.2624, allocations: 175.2 kB / 435.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2625, allocations: 0 / 435.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2625, allocations: 0 / 435.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.2625, allocations: 0 / 435.3 MB, free: 3.164 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.0005998/0.2631, allocations: 373.8 kB / 435.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2631, allocations: 8.031 kB / 435.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.731e-05/0.2631, allocations: 4.422 kB / 435.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.2632, allocations: 46.73 kB / 435.7 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.2633, allocations: 28.83 kB / 435.7 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.2636, allocations: 154.3 kB / 435.9 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.2636, allocations: 4.609 kB / 435.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.2636, allocations: 12.38 kB / 435.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.2639, allocations: 153.1 kB / 436.1 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2639, allocations: 4 kB / 436.1 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.2639, allocations: 4 kB / 436.1 MB, free: 2.312 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.2639, allocations: 4 kB / 436.1 MB, free: 2.309 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001814/0.2641, allocations: 76.66 kB / 436.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007865/0.2649, allocations: 474.1 kB / 436.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.2652, allocations: 82.61 kB / 436.7 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.839e-05/0.2653, allocations: 32.92 kB / 436.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.2653, allocations: 0 / 436.7 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.2653, allocations: 42.55 kB / 436.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.61e-07/0.2653, allocations: 0 / 436.8 MB, free: 1.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006962/0.266, allocations: 178.3 kB / 436.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.2661, allocations: 51.41 kB / 437 MB, free: 1.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.2662, allocations: 157.7 kB / 437.1 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2662, allocations: 29.64 kB / 437.2 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.2663, allocations: 128.1 kB / 437.3 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.2663, allocations: 11.84 kB / 437.3 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/0.2664, allocations: 33.66 kB / 437.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.2665, allocations: 322.8 kB / 437.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.594e-05/0.2666, allocations: 20 kB / 437.7 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.365e-05/0.2667, allocations: 42.56 kB / 437.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.2668, allocations: 74.73 kB / 437.8 MB, free: 448 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2668, allocations: 0 / 437.8 MB, free: 448 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002902/0.2671, allocations: 134.3 kB / 437.9 MB, free: 304 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.2671, allocations: 8 kB / 437.9 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2671, allocations: 4.062 kB / 437.9 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000186/0.2673, allocations: 36.83 kB / 438 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.482e-05/0.2674, allocations: 11.94 kB / 438 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.269, allocations: 1.589 MB / 439.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.622e-05/0.2691, allocations: 7.953 kB / 439.6 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.2691, allocations: 4 kB / 439.6 MB, free: 14.52 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.0001211/0.2692, allocations: 129.8 kB / 439.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.225e-05/0.2693, allocations: 7.953 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.961e-05/0.2693, allocations: 8.719 kB / 439.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2693, allocations: 4 kB / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.42e-07/0.2693, allocations: 0 / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2693, allocations: 0 / 439.7 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.2695, allocations: 177 kB / 439.9 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.2695, allocations: 12 kB / 439.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.386e-05/0.2696, allocations: 3.938 kB / 439.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001268/0.2697, allocations: 40.83 kB / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.2697, allocations: 0 / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.2711, allocations: 1.566 MB / 441.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.2711, allocations: 8.094 kB / 441.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003266/0.2715, allocations: 216.2 kB / 441.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.023e-05/0.2715, allocations: 11.95 kB / 441.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.2715, allocations: 192 / 441.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.2716, allocations: 8 kB / 441.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.598e-05/0.2717, allocations: 11.92 kB / 441.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.2717, allocations: 7.938 kB / 441.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.615e-05/0.2718, allocations: 112.9 kB / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2718, allocations: 0 / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003434/0.2721, allocations: 47.89 kB / 441.9 MB, free: 11.98 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.0006363/0.2727, allocations: 0.7405 MB / 442.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.2731, allocations: 182.6 kB / 442.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2731, allocations: 0 / 442.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.2734, allocations: 166.6 kB / 443 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002551/0.2736, allocations: 8 kB / 443 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.2758, allocations: 1.725 MB / 444.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.2759, allocations: 94.27 kB / 444.8 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.202e-05/0.2759, allocations: 4.438 kB / 444.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.762e-05/0.276, allocations: 31.42 kB / 444.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.276, allocations: 0 / 444.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.3025, allocations: 3.159 MB / 448 MB, free: 5.871 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.49, allocations: 15.12 kB / 448 MB, free: 5.863 MB / 350.1 MB " [Timeout remaining time 647] (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.978245315956883]