Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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.001796/0.001796, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 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.0022/0.0022, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 55.92 kB / 347.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2565, allocations: 49.15 MB / 396.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.002915/0.2594, allocations: 2.065 MB / 398.4 MB, free: 7.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007762/0.2602, allocations: 482.1 kB / 398.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.742e-05/0.2602, allocations: 2.562 kB / 398.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.2603, allocations: 20.88 kB / 398.9 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.708e-05/0.2604, allocations: 55.17 kB / 399 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.2606, allocations: 37.72 kB / 399 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.2608, allocations: 155.1 kB / 399.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001502/0.261, allocations: 42.23 kB / 399.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.2611, allocations: 61.62 kB / 399.3 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.903e-05/0.2612, allocations: 62.17 kB / 399.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.2612, allocations: 12.5 kB / 399.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.399e-05/0.2613, allocations: 20.44 kB / 399.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.614e-05/0.2613, allocations: 36.55 kB / 399.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.14e-05/0.2614, allocations: 56.19 kB / 399.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002448/0.2616, allocations: 159.8 kB / 399.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2616, allocations: 0 / 399.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2616, allocations: 1.5 kB / 399.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2616, allocations: 0 / 399.6 MB, free: 6.812 MB / 318.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.000546/0.2622, allocations: 369.7 kB / 400 MB, free: 6.488 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2622, allocations: 12.36 kB / 400 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.66e-05/0.2622, allocations: 42.38 kB / 400 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.107e-05/0.2623, allocations: 21.94 kB / 400 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.2625, allocations: 154 kB / 400.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.2626, allocations: 8.641 kB / 400.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.2626, allocations: 12.5 kB / 400.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/0.2628, allocations: 147.5 kB / 400.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.2628, allocations: 1.062 kB / 400.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.2629, allocations: 5 kB / 400.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.2629, allocations: 6.75 kB / 400.4 MB, free: 6.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.2631, allocations: 77.5 kB / 400.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000718/0.2638, allocations: 472.8 kB / 400.9 MB, free: 5.746 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002969/0.2641, allocations: 88.14 kB / 401 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.48e-05/0.2641, allocations: 32.61 kB / 401 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.2642, allocations: 1.031 kB / 401 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.2642, allocations: 33.36 kB / 401 MB, free: 5.641 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.082e-06/0.2642, allocations: 0 / 401 MB, free: 5.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006319/0.2648, allocations: 183.4 kB / 401.2 MB, free: 5.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.123e-05/0.2648, allocations: 53.44 kB / 401.3 MB, free: 5.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.2649, allocations: 147.2 kB / 401.4 MB, free: 5.375 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.265, allocations: 27.08 kB / 401.4 MB, free: 5.344 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.591e-05/0.265, allocations: 132.5 kB / 401.6 MB, free: 5.223 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.265, allocations: 21.91 kB / 401.6 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.2651, allocations: 24.31 kB / 401.6 MB, free: 5.184 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.746e-05/0.2651, allocations: 320.5 kB / 401.9 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.073e-05/0.2652, allocations: 19.53 kB / 402 MB, free: 4.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.643e-05/0.2652, allocations: 46.11 kB / 402 MB, free: 4.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.2654, allocations: 67.52 kB / 402.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2654, allocations: 192 / 402.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002813/0.2656, allocations: 139.7 kB / 402.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2657, allocations: 9.375 kB / 402.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.2657, allocations: 2.234 kB / 402.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001867/0.2658, allocations: 35.88 kB / 402.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.53e-05/0.2659, allocations: 10.25 kB / 402.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001126/0.267, allocations: 1.571 MB / 403.8 MB, free: 3.184 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.877e-05/0.2671, allocations: 16.66 kB / 403.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.2671, allocations: 3.156 kB / 403.8 MB, free: 3.172 MB / 318.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 6.772e-05/0.2672, allocations: 120.9 kB / 404 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.2672, allocations: 16.67 kB / 404 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.019e-05/0.2672, allocations: 16.03 kB / 404 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.2672, allocations: 1.703 kB / 404 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.2672, allocations: 1.188 kB / 404 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.2672, allocations: 0.9375 kB / 404 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.2674, allocations: 175.4 kB / 404.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2674, allocations: 7.922 kB / 404.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.2674, allocations: 8.875 kB / 404.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000112/0.2675, allocations: 35.81 kB / 404.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.2676, allocations: 0.5156 kB / 404.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00091/0.2685, allocations: 1.578 MB / 405.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2685, allocations: 1.281 kB / 405.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.2687, allocations: 212 kB / 406 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.656e-05/0.2687, allocations: 7.812 kB / 406 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.2687, allocations: 5.75 kB / 406 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.728e-05/0.2688, allocations: 9.656 kB / 406 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.2689, allocations: 6.109 kB / 406 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.2689, allocations: 2.031 kB / 406 MB, free: 1.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.591e-05/0.269, allocations: 116 kB / 406.2 MB, free: 1.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.269, allocations: 0 / 406.2 MB, free: 1.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000375/0.2693, allocations: 43.48 kB / 406.2 MB, free: 1.039 MB / 318.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.0004096/0.2697, allocations: 0.7402 MB / 406.9 MB, free: 352 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003515/0.2701, allocations: 199 kB / 407.1 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2701, allocations: 0 / 407.1 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001797/0.2703, allocations: 156.6 kB / 407.3 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.2705, allocations: 21.28 kB / 407.3 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001986/0.2725, allocations: 1.725 MB / 409 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.835e-05/0.2726, allocations: 98.77 kB / 409.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.785e-05/0.2726, allocations: 4.031 kB / 409.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.745e-05/0.2727, allocations: 33.09 kB / 409.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2727, allocations: 0 / 409.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03219/0.3049, allocations: 3.459 MB / 412.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.15, allocations: 5.406 kB / 412.6 MB, free: 13.23 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingResistor/HeatingResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingResistor.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.49607804697007]