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.008163/0.008163, allocations: 116.9 kB / 21.97 MB, free: 5.242 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.002216/0.002216, allocations: 208.3 kB / 25.28 MB, free: 3.254 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.422/1.422, allocations: 207.6 MB / 236 MB, free: 10 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingResistor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingResistor",fmuType="cs",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.00188/0.00188, allocations: 47.94 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2551, allocations: 49.17 MB / 397.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.003122/0.2583, allocations: 2.152 MB / 399.3 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000871/0.2591, allocations: 0.5132 MB / 399.8 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001009/0.2592, allocations: 2.625 kB / 399.8 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.2593, allocations: 25.28 kB / 399.8 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.616e-05/0.2594, allocations: 50.05 kB / 399.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.2596, allocations: 42.31 kB / 399.9 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.2598, allocations: 155.9 kB / 400.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.2599, allocations: 45.2 kB / 400.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.26, allocations: 60.06 kB / 400.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.2601, allocations: 68.92 kB / 400.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.358e-05/0.2602, allocations: 13.06 kB / 400.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.408e-05/0.2602, allocations: 19.19 kB / 400.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.827e-05/0.2603, allocations: 24.61 kB / 400.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.85e-05/0.2603, allocations: 76.28 kB / 400.4 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.2606, allocations: 163.7 kB / 400.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2606, allocations: 1.406 kB / 400.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2606, allocations: 0 / 400.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.2606, allocations: 0 / 400.5 MB, free: 6.777 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.0004978/0.2611, allocations: 364.7 kB / 400.9 MB, free: 6.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.2611, allocations: 13.58 kB / 400.9 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.778e-05/0.2611, allocations: 4.453 kB / 400.9 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.911e-05/0.2612, allocations: 52.59 kB / 401 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.595e-05/0.2613, allocations: 19.05 kB / 401 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.2615, allocations: 149.4 kB / 401.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.2615, allocations: 9.172 kB / 401.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.2615, allocations: 8.188 kB / 401.1 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.2617, allocations: 125.8 kB / 401.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2617, allocations: 0 / 401.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.2617, allocations: 9 kB / 401.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.2617, allocations: 2.719 kB / 401.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.2619, allocations: 90.22 kB / 401.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.2626, allocations: 0.5548 MB / 401.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.2629, allocations: 83.95 kB / 402 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.367e-05/0.2629, allocations: 33.48 kB / 402 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.263, allocations: 0 / 402 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.263, allocations: 36.45 kB / 402.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 8.62e-07/0.263, allocations: 0 / 402.1 MB, free: 5.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006248/0.2636, allocations: 179.5 kB / 402.2 MB, free: 5.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.06e-05/0.2636, allocations: 53.12 kB / 402.3 MB, free: 5.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.2637, allocations: 143.7 kB / 402.4 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.047e-05/0.2637, allocations: 29.7 kB / 402.5 MB, free: 5.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.996e-05/0.2638, allocations: 122.4 kB / 402.6 MB, free: 5.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.2638, allocations: 27.91 kB / 402.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.2638, allocations: 29.22 kB / 402.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.2639, allocations: 319.5 kB / 403 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.433e-05/0.2639, allocations: 27.14 kB / 403 MB, free: 4.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.706e-05/0.264, allocations: 41.47 kB / 403 MB, free: 4.719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.2641, allocations: 71.14 kB / 403.1 MB, free: 4.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2641, allocations: 0 / 403.1 MB, free: 4.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002613/0.2644, allocations: 135.6 kB / 403.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.2644, allocations: 5.875 kB / 403.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2644, allocations: 1.75 kB / 403.2 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001803/0.2646, allocations: 43.95 kB / 403.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.462e-05/0.2647, allocations: 10.11 kB / 403.3 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/0.2658, allocations: 1.585 MB / 404.9 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.069e-05/0.2659, allocations: 15.55 kB / 404.9 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-06/0.2659, allocations: 2.031 kB / 404.9 MB, free: 3.047 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 9.263e-05/0.266, allocations: 124.8 kB / 405 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.266, allocations: 12.67 kB / 405 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.985e-05/0.266, allocations: 13.25 kB / 405 MB, free: 2.906 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.266, allocations: 5.094 kB / 405 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.266, allocations: 1.219 kB / 405 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.266, allocations: 0.8906 kB / 405 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000175/0.2662, allocations: 190.1 kB / 405.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.2662, allocations: 0.6562 kB / 405.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.635e-05/0.2662, allocations: 4.5 kB / 405.2 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.2664, allocations: 35.34 kB / 405.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.2664, allocations: 5.641 kB / 405.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009143/0.2673, allocations: 1.581 MB / 406.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2673, allocations: 0.75 kB / 406.8 MB, free: 1.195 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.2675, allocations: 212.9 kB / 407.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.579e-05/0.2676, allocations: 12.3 kB / 407.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.2676, allocations: 1.156 kB / 407.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.557e-05/0.2677, allocations: 6.141 kB / 407.1 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.2677, allocations: 13.45 kB / 407.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.2677, allocations: 1 kB / 407.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.113e-05/0.2678, allocations: 105.1 kB / 407.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2678, allocations: 1.156 kB / 407.2 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.2681, allocations: 42.73 kB / 407.2 MB, free: 0.918 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.0003791/0.2685, allocations: 0.7544 MB / 408 MB, free: 212 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.2689, allocations: 191.6 kB / 408.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2689, allocations: 0 / 408.2 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.2691, allocations: 151.8 kB / 408.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.2693, allocations: 14.45 kB / 408.3 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/0.2715, allocations: 1.725 MB / 410.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.2719, allocations: 0.711 MB / 410.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.28e-05/0.2719, allocations: 4.484 kB / 410.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.792e-05/0.272, allocations: 29.77 kB / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of SimCode: time 7.51e-07/0.272, allocations: 0 / 410.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02811/0.3001, allocations: 3.181 MB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.26, allocations: 3.562 kB / 414 MB, free: 12.82 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.782940628007054]