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.001254/0.001254, allocations: 105 kB / 21.96 MB, free: 5.219 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.001277/0.001277, allocations: 210.1 kB / 25.25 MB, free: 3.133 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.313/1.313, allocations: 207.7 MB / 236.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 179] 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.00165/0.00165, allocations: 58.58 kB / 348 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2382, allocations: 49.15 MB / 397.1 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingResistor): time 0.00279/0.241, allocations: 2.051 MB / 399.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006981/0.2417, allocations: 485.8 kB / 399.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.399e-05/0.2418, allocations: 2.656 kB / 399.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.503e-05/0.2419, allocations: 19.64 kB / 399.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.943e-05/0.2419, allocations: 48.81 kB / 399.7 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001885/0.2421, allocations: 45.19 kB / 399.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.2423, allocations: 151.7 kB / 399.9 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.2424, allocations: 52.27 kB / 400 MB, free: 7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2425, allocations: 60.83 kB / 400 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.642e-05/0.2426, allocations: 68.25 kB / 400.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.2427, allocations: 12.66 kB / 400.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.215e-05/0.2427, allocations: 19.88 kB / 400.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.648e-05/0.2427, allocations: 28.77 kB / 400.2 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.598e-05/0.2428, allocations: 59.44 kB / 400.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.243, allocations: 160 kB / 400.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.243, allocations: 0.75 kB / 400.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.243, allocations: 0 / 400.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.243, allocations: 0 / 400.4 MB, free: 6.824 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.0004586/0.2435, allocations: 365.5 kB / 400.7 MB, free: 6.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2435, allocations: 13.61 kB / 400.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.78e-05/0.2435, allocations: 7.453 kB / 400.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.867e-05/0.2436, allocations: 49.22 kB / 400.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.028e-05/0.2436, allocations: 22.84 kB / 400.8 MB, free: 6.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.2438, allocations: 157.8 kB / 401 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.2438, allocations: 5.203 kB / 401 MB, free: 6.273 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.2438, allocations: 13.11 kB / 401 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.2441, allocations: 151 kB / 401.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2441, allocations: 0 / 401.1 MB, free: 6.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.2441, allocations: 6.188 kB / 401.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.2441, allocations: 2.719 kB / 401.1 MB, free: 6.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.2443, allocations: 77.06 kB / 401.2 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000622/0.2449, allocations: 472.9 kB / 401.7 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.2451, allocations: 84.53 kB / 401.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.975e-05/0.2452, allocations: 29.2 kB / 401.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/0.2452, allocations: 1.281 kB / 401.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.2453, allocations: 39.72 kB / 401.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.253e-06/0.2453, allocations: 0 / 401.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006204/0.2459, allocations: 180.7 kB / 402 MB, free: 5.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.788e-05/0.2459, allocations: 52.59 kB / 402.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.246, allocations: 143.6 kB / 402.2 MB, free: 5.387 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.878e-06/0.246, allocations: 33.7 kB / 402.2 MB, free: 5.348 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.876e-05/0.2461, allocations: 125.2 kB / 402.4 MB, free: 5.234 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.2461, allocations: 20.62 kB / 402.4 MB, free: 5.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.2461, allocations: 26.05 kB / 402.4 MB, free: 5.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.098e-05/0.2461, allocations: 320.6 kB / 402.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.119e-05/0.2462, allocations: 23.25 kB / 402.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.486e-05/0.2463, allocations: 46.5 kB / 402.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.2464, allocations: 70.47 kB / 402.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2464, allocations: 4 kB / 402.9 MB, free: 4.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002527/0.2466, allocations: 136.4 kB / 403 MB, free: 4.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.2467, allocations: 5.156 kB / 403 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2467, allocations: 1.094 kB / 403 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.2469, allocations: 37.31 kB / 403 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.413e-05/0.2469, allocations: 8.562 kB / 403 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001134/0.248, allocations: 1.588 MB / 404.6 MB, free: 3.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.02e-05/0.2481, allocations: 12.94 kB / 404.6 MB, free: 3.168 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.2481, allocations: 3.312 kB / 404.6 MB, free: 3.168 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 7.089e-05/0.2482, allocations: 124.5 kB / 404.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.2482, allocations: 16.81 kB / 404.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.109e-05/0.2482, allocations: 12.38 kB / 404.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.2482, allocations: 1.031 kB / 404.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-06/0.2482, allocations: 1.125 kB / 404.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2482, allocations: 0.75 kB / 404.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.2484, allocations: 176.1 kB / 405 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2484, allocations: 0.6094 kB / 405 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.559e-05/0.2485, allocations: 3.688 kB / 405 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001197/0.2486, allocations: 36.5 kB / 405 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.2486, allocations: 9.625 kB / 405 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009173/0.2495, allocations: 1.571 MB / 406.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2495, allocations: 1.156 kB / 406.6 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.2498, allocations: 218.1 kB / 406.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.542e-05/0.2498, allocations: 8.594 kB / 406.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.2498, allocations: 4.719 kB / 406.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.847e-05/0.2499, allocations: 10.38 kB / 406.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.2499, allocations: 5.5 kB / 406.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.2499, allocations: 2.719 kB / 406.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.777e-05/0.25, allocations: 112.2 kB / 406.9 MB, free: 1.055 MB / 318.1 MB Notification: Performance of sort global known variables: time 5e-08/0.25, allocations: 0 / 406.9 MB, free: 1.055 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.2503, allocations: 42.36 kB / 407 MB, free: 1.043 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.0004395/0.2508, allocations: 0.7528 MB / 407.7 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004008/0.2512, allocations: 185.6 kB / 407.9 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2512, allocations: 0 / 407.9 MB, free: 204 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.2514, allocations: 157.5 kB / 408.1 MB, free: 72 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.2516, allocations: 13.58 kB / 408.1 MB, free: 64 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.2537, allocations: 1.729 MB / 409.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.2538, allocations: 100.4 kB / 409.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.836e-05/0.2538, allocations: 7.281 kB / 409.9 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.442e-05/0.2539, allocations: 29.31 kB / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.2539, allocations: 0 / 410 MB, free: 14.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02648/0.2804, allocations: 3.145 MB / 413.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.38, allocations: 7.359 kB / 413.1 MB, free: 13.59 MB / 334.1 MB " [Timeout remaining time 647] (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.745124203967862]