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.001816/0.001816, allocations: 116.6 kB / 18.49 MB, free: 4.566 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.002042/0.002042, allocations: 189 kB / 21.43 MB, free: 1.641 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.372/1.372, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 51.92 kB / 366.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09889, allocations: 52.14 MB / 418.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007027/0.1059, allocations: 4.96 MB / 423.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.1088, allocations: 1.268 MB / 424.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007061/0.1095, allocations: 11.94 kB / 424.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005388/0.1101, allocations: 130.7 kB / 424.9 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009756/0.111, allocations: 253.7 kB / 425.1 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.1121, allocations: 319.4 kB / 425.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001767/0.1138, allocations: 1.091 MB / 426.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004743/0.1143, allocations: 190.5 kB / 426.7 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008202/0.1151, allocations: 430.5 kB / 427.1 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008687/0.116, allocations: 474 kB / 427.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002736/0.1163, allocations: 92 kB / 427.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003733/0.1166, allocations: 119.9 kB / 427.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002528/0.1169, allocations: 199.3 kB / 428 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007553/0.1176, allocations: 457.8 kB / 428.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.1191, allocations: 1.035 MB / 429.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1191, allocations: 0 / 429.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1191, allocations: 0 / 429.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.947e-05/0.1191, allocations: 0 / 429.5 MB, free: 1.535 MB / 350.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.003128/0.1222, allocations: 1.285 MB / 430.8 MB, free: 188 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1223, allocations: 12.03 kB / 430.8 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.829e-05/0.1223, allocations: 13.5 kB / 430.8 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.1225, allocations: 110.7 kB / 430.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002241/0.1227, allocations: 92.42 kB / 431 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000781/0.1235, allocations: 499.8 kB / 431.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.72e-05/0.1235, allocations: 49.69 kB / 431.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.1237, allocations: 64.38 kB / 431.6 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.1251, allocations: 0.6583 MB / 432.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.1252, allocations: 0 / 432.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-05/0.1252, allocations: 24 kB / 432.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.1252, allocations: 20 kB / 432.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001759/0.127, allocations: 0.7038 MB / 433 MB, free: 13.9 MB / 366.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.004128/0.1311, allocations: 2.375 MB / 435.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.1326, allocations: 0.5688 MB / 435.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007687/0.1334, allocations: 314.6 kB / 436.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.313e-05/0.1335, allocations: 12.42 kB / 436.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009646/0.1344, allocations: 421.4 kB / 436.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 1.994e-06/0.1344, allocations: 0 / 436.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.238/0.3724, allocations: 15.39 MB / 452.1 MB, free: 29.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.303e-05/0.3725, allocations: 144.4 kB / 452.2 MB, free: 29.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007394/0.3732, allocations: 0.5175 MB / 452.7 MB, free: 29.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.3734, allocations: 49.41 kB / 452.8 MB, free: 29.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.3737, allocations: 398.3 kB / 453.1 MB, free: 29.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.3739, allocations: 326.3 kB / 453.5 MB, free: 29.15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003634/0.3743, allocations: 190.2 kB / 453.7 MB, free: 29.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3744, allocations: 385.5 kB / 454 MB, free: 28.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.3763, allocations: 0.7212 MB / 454.8 MB, free: 28.8 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0021/0.3784, allocations: 0.9581 MB / 455.7 MB, free: 28.51 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003811/0.3823, allocations: 1.691 MB / 457.4 MB, free: 27.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.3823, allocations: 2.844 kB / 457.4 MB, free: 27.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02161/0.4039, allocations: 5.333 MB / 462.7 MB, free: 26.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.506e-05/0.4039, allocations: 64.88 kB / 462.8 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.404, allocations: 5.625 kB / 462.8 MB, free: 26.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03096/0.4349, allocations: 6.83 MB / 469.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006758/0.4356, allocations: 150.8 kB / 469.8 MB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.4405, allocations: 3.01 MB / 472.8 MB, free: 22.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.4421, allocations: 186.6 kB / 473 MB, free: 21.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.4422, allocations: 47.31 kB / 473 MB, free: 21.94 MB / 366.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.0003569/0.4425, allocations: 223.2 kB / 473.2 MB, free: 21.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.4427, allocations: 82.42 kB / 473.3 MB, free: 21.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01909/0.4618, allocations: 5.058 MB / 478.4 MB, free: 18.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.4618, allocations: 8 kB / 478.4 MB, free: 18.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.4618, allocations: 6.625 kB / 478.4 MB, free: 18.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.4618, allocations: 3.984 kB / 478.4 MB, free: 18.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001164/0.463, allocations: 1.105 MB / 479.5 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.463, allocations: 4.438 kB / 479.5 MB, free: 17.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004808/0.4635, allocations: 87.88 kB / 479.6 MB, free: 17.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02881/0.4923, allocations: 6.787 MB / 486.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.4925, allocations: 29.34 kB / 486.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004747/0.4972, allocations: 3.027 MB / 489.4 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4972, allocations: 0 / 489.4 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02055/0.5178, allocations: 5.949 MB / 495.4 MB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.518, allocations: 148.6 kB / 495.5 MB, free: 1.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/0.5181, allocations: 21.78 kB / 495.5 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.5193, allocations: 167.8 kB / 495.7 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/0.5196, allocations: 104.9 kB / 495.8 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-05/0.5196, allocations: 31.97 kB / 495.8 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003079/0.52, allocations: 360 kB / 496.2 MB, free: 428 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.52, allocations: 4 kB / 496.2 MB, free: 424 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.000682/0.5206, allocations: 256 kB / 496.5 MB, free: 168 kB / 366.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.02434/0.545, allocations: 6.53 MB / 0.4912 GB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005995/0.551, allocations: 1.972 MB / 0.4931 GB, free: 7.609 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.551, allocations: 4.125 kB / 0.4931 GB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003605/0.5546, allocations: 1.009 MB / 0.4941 GB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007488/0.5553, allocations: 139.6 kB / 0.4942 GB, free: 6.477 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05372/0.609, allocations: 15.9 MB / 0.5098 GB, free: 6.285 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005639/0.6096, allocations: 0.9506 MB / 0.5107 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002999/0.6099, allocations: 59.22 kB / 0.5107 GB, free: 5.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/0.6103, allocations: 275.3 kB / 0.511 GB, free: 4.988 MB / 398.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6103, allocations: 4 kB / 0.511 GB, free: 4.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06242/0.6727, allocations: 29.96 MB / 0.5403 GB, free: 7.332 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.75, allocations: 12.69 kB / 0.5403 GB, free: 7.324 MB / 430.1 MB " [Timeout remaining time 646] (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: 16.720245421980508]