Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001289/0.001289, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001507/0.001507, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.408/1.408, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001554/0.001554, allocations: 55.92 kB / 373 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1043, allocations: 53.32 MB / 426.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.2054/0.3097, allocations: 4.98 MB / 431.3 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.312, allocations: 1.288 MB / 432.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003409/0.3124, allocations: 16.41 kB / 432.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002711/0.3127, allocations: 124.8 kB / 432.7 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004143/0.3131, allocations: 265.1 kB / 433 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006292/0.3137, allocations: 306.4 kB / 433.3 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008298/0.3145, allocations: 1.099 MB / 434.4 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.3148, allocations: 184.1 kB / 434.6 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.3152, allocations: 436.7 kB / 435 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004792/0.3157, allocations: 474.6 kB / 435.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.3158, allocations: 92.09 kB / 435.6 MB, free: 6.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.316, allocations: 117.7 kB / 435.7 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.3162, allocations: 201.5 kB / 435.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003729/0.3165, allocations: 449.4 kB / 436.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001108/0.3176, allocations: 1.039 MB / 437.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3177, allocations: 1.094 kB / 437.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3177, allocations: 0.5625 kB / 437.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.193e-05/0.3177, allocations: 3.312 kB / 437.4 MB, free: 6.195 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.002458/0.3201, allocations: 1.281 MB / 438.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.3202, allocations: 9.828 kB / 438.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.3203, allocations: 107 kB / 438.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.3204, allocations: 99.3 kB / 438.8 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006372/0.3211, allocations: 0.4919 MB / 439.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/0.3211, allocations: 49.28 kB / 439.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.3212, allocations: 66.69 kB / 439.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.3226, allocations: 0.6582 MB / 440.1 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.3226, allocations: 3.938 kB / 440.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.3227, allocations: 31.53 kB / 440.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.621e-05/0.3227, allocations: 14.47 kB / 440.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001746/0.3244, allocations: 0.6956 MB / 440.8 MB, free: 4.293 MB / 350.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.004097/0.3285, allocations: 2.365 MB / 443.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001485/0.33, allocations: 0.5678 MB / 443.8 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007674/0.3308, allocations: 311.5 kB / 444.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.877e-05/0.3308, allocations: 9.312 kB / 444.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009855/0.3318, allocations: 428.1 kB / 444.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.474e-06/0.3318, allocations: 3.938 kB / 444.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06953/0.4014, allocations: 15.37 MB / 459.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000127/0.4015, allocations: 154.3 kB / 460 MB, free: 12.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009577/0.4024, allocations: 0.5146 MB / 460.6 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002958/0.4027, allocations: 43.55 kB / 460.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000398/0.4031, allocations: 394.8 kB / 461 MB, free: 11.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/0.4036, allocations: 331 kB / 461.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004245/0.404, allocations: 183.9 kB / 461.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002503/0.4043, allocations: 387.8 kB / 461.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002102/0.4064, allocations: 0.7243 MB / 462.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002293/0.4087, allocations: 0.9585 MB / 463.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004312/0.413, allocations: 1.696 MB / 465.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.413, allocations: 4 kB / 465.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02428/0.4373, allocations: 5.329 MB / 470.6 MB, free: 3.195 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.366e-05/0.4374, allocations: 71.39 kB / 470.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/0.4374, allocations: 4 kB / 470.6 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03517/0.4725, allocations: 6.829 MB / 477.5 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008696/0.4734, allocations: 153.8 kB / 477.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006562/0.48, allocations: 3.015 MB / 480.6 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.4818, allocations: 175.9 kB / 480.8 MB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.4819, allocations: 55.84 kB / 480.9 MB, free: 8.832 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.0004932/0.4824, allocations: 225.7 kB / 481.1 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/0.4826, allocations: 87.47 kB / 481.2 MB, free: 8.516 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02274/0.5054, allocations: 5.056 MB / 486.2 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.648e-05/0.5054, allocations: 8 kB / 486.2 MB, free: 3.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.5054, allocations: 11.98 kB / 486.3 MB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/0.5054, allocations: 3.984 kB / 486.3 MB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.5071, allocations: 1.105 MB / 487.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.5071, allocations: 0 / 487.4 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005494/0.5077, allocations: 96.81 kB / 487.5 MB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03444/0.5421, allocations: 6.785 MB / 494.2 MB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/0.5424, allocations: 31.97 kB / 494.3 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006311/0.5487, allocations: 3.022 MB / 497.3 MB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5487, allocations: 3.938 kB / 497.3 MB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0252/0.5739, allocations: 5.948 MB / 0.4914 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003237/0.5742, allocations: 160.4 kB / 0.4916 GB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.5744, allocations: 16 kB / 0.4916 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.5757, allocations: 175.8 kB / 0.4918 GB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.576, allocations: 92.88 kB / 0.4919 GB, free: 1.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.563e-05/0.5761, allocations: 33.89 kB / 0.4919 GB, free: 1.828 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000466/0.5766, allocations: 354.8 kB / 0.4922 GB, free: 1.484 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5766, allocations: 0 / 0.4922 GB, free: 1.484 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008296/0.5774, allocations: 256 kB / 0.4925 GB, free: 1.234 MB / 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.02538/0.6028, allocations: 6.529 MB / 0.4989 GB, free: 10.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006292/0.6091, allocations: 1.961 MB / 0.5008 GB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6091, allocations: 8.125 kB / 0.5008 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003621/0.6127, allocations: 1.011 MB / 0.5018 GB, free: 7.676 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000833/0.6136, allocations: 131.5 kB / 0.5019 GB, free: 7.555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05634/0.6699, allocations: 15.9 MB / 0.5174 GB, free: 7.348 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/0.6705, allocations: 0.9468 MB / 0.5184 GB, free: 6.375 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003286/0.6708, allocations: 59.3 kB / 0.5184 GB, free: 6.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000376/0.6712, allocations: 275.3 kB / 0.5187 GB, free: 6.051 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6712, allocations: 3.938 kB / 0.5187 GB, free: 6.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07268/0.7439, allocations: 29.95 MB / 0.5479 GB, free: 8.359 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.75, allocations: 6.812 kB / 0.5479 GB, free: 8.355 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.399471408920363]