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.001746/0.001746, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.002235/0.002235, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.54/1.54, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.001736/0.001736, allocations: 43.94 kB / 377.8 MB, free: 3.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2984, allocations: 53.36 MB / 431.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.004075/0.3025, allocations: 2.186 MB / 433.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.3038, allocations: 0.6234 MB / 433.9 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.304, allocations: 7.875 kB / 434 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.3041, allocations: 19.8 kB / 434 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001322/0.3043, allocations: 43.62 kB / 434 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003001/0.3046, allocations: 55.81 kB / 434.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.3048, allocations: 159.2 kB / 434.2 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000158/0.305, allocations: 37.67 kB / 434.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.3052, allocations: 71.7 kB / 434.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.3053, allocations: 67.7 kB / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.3053, allocations: 12 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.553e-05/0.3054, allocations: 24 kB / 434.4 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.556e-05/0.3055, allocations: 31.84 kB / 434.5 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.728e-05/0.3055, allocations: 71.67 kB / 434.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002977/0.3058, allocations: 175.7 kB / 434.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3058, allocations: 0 / 434.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3058, allocations: 0 / 434.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.3059, allocations: 0 / 434.7 MB, free: 3.312 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.0006825/0.3065, allocations: 369.9 kB / 435.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3066, allocations: 8.031 kB / 435.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.658e-05/0.3066, allocations: 46.69 kB / 435.1 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001916/0.3068, allocations: 32.83 kB / 435.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.3071, allocations: 150.4 kB / 435.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3071, allocations: 4.609 kB / 435.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.3072, allocations: 12.38 kB / 435.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.3074, allocations: 127.6 kB / 435.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.3075, allocations: 0 / 435.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.3075, allocations: 4 kB / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.3075, allocations: 4 kB / 435.5 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.3077, allocations: 84.66 kB / 435.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009736/0.3087, allocations: 0.562 MB / 436.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.309, allocations: 82.56 kB / 436.2 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.824e-05/0.3091, allocations: 36.97 kB / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.675e-05/0.3091, allocations: 0 / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.3091, allocations: 34.56 kB / 436.2 MB, free: 1.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.3091, allocations: 0 / 436.2 MB, free: 1.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007211/0.3099, allocations: 182.2 kB / 436.4 MB, free: 1.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.3099, allocations: 55.41 kB / 436.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001698/0.3101, allocations: 160.3 kB / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.3101, allocations: 25.7 kB / 436.7 MB, free: 1.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.995e-05/0.3102, allocations: 120.2 kB / 436.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.631e-05/0.3102, allocations: 31.77 kB / 436.8 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.615e-05/0.3103, allocations: 25.66 kB / 436.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3104, allocations: 322.8 kB / 437.1 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.113e-05/0.3105, allocations: 23.92 kB / 437.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.988e-05/0.3106, allocations: 42.56 kB / 437.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.3107, allocations: 70.56 kB / 437.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3107, allocations: 0 / 437.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003095/0.311, allocations: 142.2 kB / 437.4 MB, free: 360 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.3111, allocations: 8 kB / 437.4 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3111, allocations: 0 / 437.4 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002095/0.3113, allocations: 36.91 kB / 437.5 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.7e-05/0.3113, allocations: 11.98 kB / 437.5 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001784/0.3131, allocations: 1.582 MB / 439.1 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.632e-05/0.3132, allocations: 3.953 kB / 439.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.3132, allocations: 7.938 kB / 439.1 MB, free: 14.59 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.0001271/0.3133, allocations: 129.8 kB / 439.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.335e-05/0.3133, allocations: 8 kB / 439.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.3134, allocations: 16.69 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.3134, allocations: 4 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.3134, allocations: 0 / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3134, allocations: 0 / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.3136, allocations: 188.6 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3136, allocations: 0 / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.413e-05/0.3137, allocations: 4 kB / 439.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/0.3138, allocations: 40.83 kB / 439.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.3138, allocations: 4 kB / 439.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.3154, allocations: 1.586 MB / 441 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3154, allocations: 0 / 441 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003292/0.3157, allocations: 212.2 kB / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.973e-05/0.3157, allocations: 12.02 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.3157, allocations: 7.984 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.732e-05/0.3158, allocations: 8.125 kB / 441.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.3159, allocations: 3.984 kB / 441.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.3159, allocations: 7.938 kB / 441.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.316, allocations: 120.9 kB / 441.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.316, allocations: 0 / 441.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000352/0.3163, allocations: 39.89 kB / 441.4 MB, free: 12.02 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.000661/0.317, allocations: 0.7405 MB / 442.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004326/0.3174, allocations: 190.9 kB / 442.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3174, allocations: 4 kB / 442.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002358/0.3177, allocations: 158.7 kB / 442.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.3179, allocations: 11.98 kB / 442.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3202, allocations: 1.722 MB / 444.3 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.3206, allocations: 0.708 MB / 445 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.995e-05/0.3206, allocations: 8.469 kB / 445 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.226e-05/0.3207, allocations: 31.42 kB / 445 MB, free: 8.27 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3207, allocations: 3.938 kB / 445 MB, free: 8.266 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03511/0.3558, allocations: 3.163 MB / 448.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.74, allocations: 4.75 kB / 448.2 MB, free: 5.242 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: 15.319248369894922]