Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.007069/0.007069, allocations: 117.2 kB / 21.97 MB, free: 5.238 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.001715/0.001715, 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.389/1.389, allocations: 207.6 MB / 236.1 MB, free: 10.88 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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.001732/0.001732, allocations: 51.92 kB / 348 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2723, allocations: 49.15 MB / 397.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005411/0.2777, allocations: 4.726 MB / 401.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00269/0.2804, allocations: 1.292 MB / 403.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005535/0.281, allocations: 10.5 kB / 403.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.2813, allocations: 114.4 kB / 403.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00054/0.2818, allocations: 256.9 kB / 403.5 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009142/0.2828, allocations: 296.9 kB / 403.8 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.2838, allocations: 1.049 MB / 404.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003116/0.2842, allocations: 194.4 kB / 405.1 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005309/0.2847, allocations: 413.6 kB / 405.5 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005365/0.2852, allocations: 474 kB / 405.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001533/0.2854, allocations: 88.59 kB / 406 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.2857, allocations: 117.3 kB / 406.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.2858, allocations: 188.3 kB / 406.3 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.2862, allocations: 435.8 kB / 406.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001319/0.2876, allocations: 0.9958 MB / 407.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.2876, allocations: 5.312 kB / 407.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2876, allocations: 0 / 407.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.2876, allocations: 0 / 407.7 MB, free: 2.418 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002793/0.2904, allocations: 1.17 MB / 408.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.2904, allocations: 14.23 kB / 408.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.344e-05/0.2904, allocations: 23.94 kB / 409 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.2906, allocations: 101.8 kB / 409.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002011/0.2908, allocations: 94.11 kB / 409.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007312/0.2915, allocations: 398.2 kB / 409.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.2915, allocations: 47.23 kB / 409.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.2916, allocations: 65.34 kB / 409.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001333/0.293, allocations: 0.6425 MB / 410.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.293, allocations: 0 / 410.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.929e-05/0.2931, allocations: 26.11 kB / 410.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.2931, allocations: 19.12 kB / 410.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/0.2948, allocations: 0.6765 MB / 411 MB, free: 0.6797 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003981/0.2988, allocations: 2.255 MB / 413.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.3003, allocations: 0.5548 MB / 413.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007491/0.3011, allocations: 310.6 kB / 414.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.645e-05/0.3011, allocations: 15.02 kB / 414.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001006/0.3022, allocations: 426.2 kB / 414.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.455e-06/0.3022, allocations: 0 / 414.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07098/0.3731, allocations: 15.23 MB / 429.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/0.3732, allocations: 145.5 kB / 429.9 MB, free: 2.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000734/0.374, allocations: 494.9 kB / 430.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002448/0.3742, allocations: 41.7 kB / 430.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/0.3746, allocations: 372.8 kB / 430.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003872/0.3749, allocations: 329.2 kB / 431.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004017/0.3753, allocations: 186.5 kB / 431.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.3756, allocations: 382.8 kB / 431.7 MB, free: 360 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002203/0.3778, allocations: 0.7202 MB / 432.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002342/0.3801, allocations: 0.9265 MB / 433.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004575/0.3847, allocations: 1.658 MB / 435 MB, free: 12.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.3847, allocations: 4 kB / 435 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02425/0.4089, allocations: 5.304 MB / 440.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.384e-05/0.409, allocations: 63.41 kB / 440.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.409, allocations: 8 kB / 440.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03518/0.4442, allocations: 6.829 MB / 447.2 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007648/0.445, allocations: 139.7 kB / 447.3 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006739/0.4517, allocations: 3.016 MB / 450.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/0.4537, allocations: 175.9 kB / 450.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.4538, allocations: 47.97 kB / 450.6 MB, free: 13.19 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0004951/0.4543, allocations: 221.6 kB / 450.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.4545, allocations: 83.52 kB / 450.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02284/0.4773, allocations: 5.052 MB / 455.9 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.87e-05/0.4773, allocations: 8 kB / 455.9 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.4774, allocations: 4 kB / 455.9 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-05/0.4774, allocations: 11.95 kB / 455.9 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.4796, allocations: 1.076 MB / 457 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/0.4796, allocations: 0 / 457 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006077/0.4802, allocations: 91.89 kB / 457.1 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03455/0.5148, allocations: 6.781 MB / 463.9 MB, free: 15.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002286/0.515, allocations: 23.98 kB / 463.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006301/0.5213, allocations: 3.041 MB / 467 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5213, allocations: 0 / 467 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02538/0.5467, allocations: 5.944 MB / 472.9 MB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002507/0.547, allocations: 67.55 kB / 473 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003669/0.5473, allocations: 23.94 kB / 473 MB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.5489, allocations: 167.8 kB / 473.2 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.5492, allocations: 104.8 kB / 473.3 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/0.5494, allocations: 31.97 kB / 473.3 MB, free: 6.305 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004618/0.5498, allocations: 334.9 kB / 473.6 MB, free: 5.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5498, allocations: 0 / 473.6 MB, free: 5.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008909/0.5507, allocations: 252 kB / 473.9 MB, free: 5.734 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02611/0.5768, allocations: 6.517 MB / 480.4 MB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00661/0.5834, allocations: 1.95 MB / 482.3 MB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5834, allocations: 0 / 482.3 MB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003676/0.5871, allocations: 1.02 MB / 483.3 MB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009029/0.588, allocations: 138.3 kB / 483.5 MB, free: 12.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05648/0.6445, allocations: 15.67 MB / 499.2 MB, free: 12.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006851/0.6452, allocations: 0.935 MB / 0.4884 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003454/0.6455, allocations: 54.08 kB / 0.4884 GB, free: 11.08 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/0.646, allocations: 263.3 kB / 0.4887 GB, free: 10.82 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.646, allocations: 0 / 0.4887 GB, free: 10.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07208/0.7181, allocations: 30.77 MB / 0.5187 GB, free: 11.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.64, allocations: 3.953 kB / 0.5187 GB, free: 11.95 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0397062 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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: 17.57308252999792]