Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 184.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 43.94 kB / 370.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2507, allocations: 52.18 MB / 422.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006228/0.2569, allocations: 4.976 MB / 427.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.2594, allocations: 1.268 MB / 428.9 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002827/0.2597, allocations: 15.94 kB / 428.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.26, allocations: 126.7 kB / 429 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004388/0.2604, allocations: 261.7 kB / 429.3 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006414/0.261, allocations: 311.5 kB / 429.6 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001066/0.2621, allocations: 1.103 MB / 430.7 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.2624, allocations: 187 kB / 430.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004635/0.2629, allocations: 430.5 kB / 431.3 MB, free: 5.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005694/0.2635, allocations: 478.1 kB / 431.8 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.2636, allocations: 92 kB / 431.9 MB, free: 5.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.2638, allocations: 112 kB / 432 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.2639, allocations: 203.3 kB / 432.2 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004165/0.2644, allocations: 461.8 kB / 432.6 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.2654, allocations: 1.031 MB / 433.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2654, allocations: 0 / 433.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2654, allocations: 0 / 433.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.2654, allocations: 0 / 433.6 MB, free: 3.508 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002565/0.268, allocations: 1.209 MB / 434.9 MB, free: 2.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.268, allocations: 8.031 kB / 434.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001257/0.2682, allocations: 110.7 kB / 435 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.2683, allocations: 96.38 kB / 435.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006997/0.269, allocations: 426.1 kB / 435.5 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.651e-05/0.2691, allocations: 53.67 kB / 435.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.2692, allocations: 64.38 kB / 435.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.2706, allocations: 0.6585 MB / 436.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.2706, allocations: 3.938 kB / 436.3 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.558e-05/0.2706, allocations: 28 kB / 436.3 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.2707, allocations: 12 kB / 436.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.2723, allocations: 0.6961 MB / 437 MB, free: 68 kB / 334.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.003861/0.2761, allocations: 2.323 MB / 439.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.2775, allocations: 0.5553 MB / 439.9 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006962/0.2782, allocations: 310 kB / 440.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.2783, allocations: 8.438 kB / 440.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008727/0.2791, allocations: 429.4 kB / 440.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.174e-06/0.2791, allocations: 0 / 440.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06938/0.3485, allocations: 15.23 MB / 455.8 MB, free: 12.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.3486, allocations: 141.5 kB / 456 MB, free: 12.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006383/0.3493, allocations: 0.5186 MB / 456.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001495/0.3494, allocations: 41.7 kB / 456.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/0.3497, allocations: 404.6 kB / 456.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000287/0.35, allocations: 325.2 kB / 457.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.3503, allocations: 190.6 kB / 457.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3505, allocations: 390.7 kB / 457.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001967/0.3525, allocations: 0.7205 MB / 458.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.3546, allocations: 0.9551 MB / 459.5 MB, free: 9.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00404/0.3587, allocations: 1.689 MB / 461.2 MB, free: 7.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3587, allocations: 4 kB / 461.2 MB, free: 7.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02352/0.3822, allocations: 5.328 MB / 466.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-05/0.3823, allocations: 63.39 kB / 466.6 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3823, allocations: 8 kB / 466.6 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03409/0.4164, allocations: 6.825 MB / 473.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006919/0.4171, allocations: 155.7 kB / 473.6 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006088/0.4232, allocations: 3.028 MB / 476.6 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001582/0.4248, allocations: 179.8 kB / 476.8 MB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001415/0.4249, allocations: 51.91 kB / 476.8 MB, free: 7.633 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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.0004307/0.4253, allocations: 225.7 kB / 477 MB, free: 7.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001997/0.4255, allocations: 83.48 kB / 477.1 MB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02264/0.4482, allocations: 5.052 MB / 482.2 MB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.223e-05/0.4482, allocations: 12.03 kB / 482.2 MB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.4482, allocations: 0 / 482.2 MB, free: 2.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-05/0.4482, allocations: 3.984 kB / 482.2 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.45, allocations: 1.08 MB / 483.3 MB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.45, allocations: 4 kB / 483.3 MB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005371/0.4505, allocations: 99.81 kB / 483.4 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03409/0.4846, allocations: 6.789 MB / 490.2 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/0.4848, allocations: 27.97 kB / 490.2 MB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006196/0.491, allocations: 3.032 MB / 493.2 MB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.491, allocations: 3.938 kB / 493.2 MB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02406/0.5151, allocations: 5.937 MB / 499.2 MB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.5153, allocations: 75.5 kB / 499.2 MB, free: 1.039 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.5155, allocations: 24 kB / 499.3 MB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.5169, allocations: 167.8 kB / 499.4 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002847/0.5172, allocations: 100.8 kB / 499.5 MB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.623e-05/0.5173, allocations: 27.98 kB / 499.5 MB, free: 0.7266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004457/0.5177, allocations: 358.8 kB / 499.9 MB, free: 384 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5177, allocations: 0 / 499.9 MB, free: 384 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007684/0.5185, allocations: 267.9 kB / 0.4884 GB, free: 116 kB / 398.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.02475/0.5432, allocations: 6.528 MB / 0.4948 GB, free: 9.539 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006106/0.5493, allocations: 1.966 MB / 0.4967 GB, free: 7.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.5494, allocations: 0 / 0.4967 GB, free: 7.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003425/0.5528, allocations: 1.012 MB / 0.4977 GB, free: 6.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/0.5536, allocations: 138.4 kB / 0.4978 GB, free: 6.406 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05688/0.6105, allocations: 15.88 MB / 0.5134 GB, free: 6.191 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/0.6111, allocations: 0.9507 MB / 0.5143 GB, free: 5.211 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003028/0.6114, allocations: 62.25 kB / 0.5143 GB, free: 5.148 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004028/0.6118, allocations: 275.3 kB / 0.5146 GB, free: 4.879 MB / 430.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6118, allocations: 0 / 0.5146 GB, free: 4.879 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3087/0.9205, allocations: 31.17 MB / 0.545 GB, free: 114.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.88, allocations: 8.719 kB / 0.5451 GB, free: 114.9 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.46966214501299]