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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009858/0.0009861, allocations: 91.77 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 177.6 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000322/0.000322, allocations: 8.688 kB / 301.5 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1201, allocations: 50.4 MB / 351.9 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005435/0.1256, allocations: 4.528 MB / 356.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002938/0.1285, allocations: 1.264 MB / 357.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007446/0.1293, allocations: 12 kB / 357.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004542/0.1298, allocations: 91.22 kB / 357.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009778/0.1308, allocations: 218.1 kB / 358 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008973/0.1317, allocations: 267.7 kB / 358.3 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.1332, allocations: 1.036 MB / 359.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004631/0.1337, allocations: 227.4 kB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006886/0.1344, allocations: 362.5 kB / 359.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007938/0.1352, allocations: 418 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00023/0.1354, allocations: 44 kB / 360.4 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003372/0.1358, allocations: 67.98 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.136, allocations: 151.3 kB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005506/0.1366, allocations: 427.5 kB / 361 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001007/0.1376, allocations: 0.938 MB / 361.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1376, allocations: 4 kB / 361.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1376, allocations: 0 / 361.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.053e-05/0.1376, allocations: 4 kB / 361.9 MB, free: 9.562 MB / 302.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.002503/0.1401, allocations: 1.146 MB / 363.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.1402, allocations: 8.031 kB / 363.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002018/0.1404, allocations: 110.7 kB / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002053/0.1406, allocations: 95.75 kB / 363.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007176/0.1414, allocations: 479.5 kB / 363.8 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.003e-05/0.1414, allocations: 49.69 kB / 363.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.1415, allocations: 64.28 kB / 363.9 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.1431, allocations: 0.6937 MB / 364.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.1432, allocations: 0 / 364.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.226e-05/0.1432, allocations: 24 kB / 364.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.1433, allocations: 16 kB / 364.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001908/0.1452, allocations: 0.7547 MB / 365.4 MB, free: 6.012 MB / 302.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.004416/0.1496, allocations: 2.441 MB / 367.8 MB, free: 3.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001563/0.1512, allocations: 0.6296 MB / 368.4 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000827/0.152, allocations: 362 kB / 368.8 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.977e-05/0.1521, allocations: 12.44 kB / 368.8 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001057/0.1532, allocations: 455.9 kB / 369.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.324e-06/0.1532, allocations: 0 / 369.2 MB, free: 1.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2552/0.4084, allocations: 16.74 MB / 386 MB, free: 21.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.4085, allocations: 139.4 kB / 386.1 MB, free: 21.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007489/0.4093, allocations: 0.5188 MB / 386.6 MB, free: 21.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001637/0.4095, allocations: 49.39 kB / 386.7 MB, free: 21.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.4097, allocations: 386.3 kB / 387.1 MB, free: 20.92 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.4099, allocations: 313.5 kB / 387.4 MB, free: 20.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.4101, allocations: 84.08 kB / 387.5 MB, free: 20.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.914e-05/0.4102, allocations: 390.4 kB / 387.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/0.4122, allocations: 0.8071 MB / 388.6 MB, free: 19.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/0.4142, allocations: 1.034 MB / 389.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003792/0.418, allocations: 1.845 MB / 391.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.418, allocations: 4 kB / 391.5 MB, free: 17.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02263/0.4406, allocations: 5.746 MB / 397.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.974e-05/0.4407, allocations: 75.33 kB / 397.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4408, allocations: 4 kB / 397.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04002/0.4808, allocations: 7.32 MB / 404.7 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009642/0.4818, allocations: 183.6 kB / 404.9 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008346/0.4902, allocations: 3.216 MB / 408.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002317/0.4925, allocations: 223.8 kB / 408.3 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.4927, allocations: 47.97 kB / 408.3 MB, free: 292 kB / 302.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.0005759/0.4933, allocations: 224.4 kB / 408.6 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002543/0.4935, allocations: 83.45 kB / 408.6 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/0.5204, allocations: 5.474 MB / 414.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.5205, allocations: 8 kB / 414.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.5205, allocations: 0 / 414.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.03e-05/0.5206, allocations: 11.91 kB / 414.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/0.5231, allocations: 1.105 MB / 415.2 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.5231, allocations: 0 / 415.2 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008133/0.524, allocations: 119.9 kB / 415.3 MB, free: 9.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04227/0.5662, allocations: 7.296 MB / 422.6 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002578/0.5666, allocations: 23.98 kB / 422.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006717/0.5733, allocations: 3.088 MB / 425.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.5733, allocations: 0 / 425.8 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02645/0.5998, allocations: 6.436 MB / 432.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.6001, allocations: 148.2 kB / 432.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/0.6004, allocations: 19.98 kB / 432.4 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/0.602, allocations: 207.8 kB / 432.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.6024, allocations: 96.86 kB / 432.7 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.6025, allocations: 35.97 kB / 432.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004937/0.603, allocations: 354.8 kB / 433 MB, free: 7.438 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.603, allocations: 2.844 kB / 433 MB, free: 7.438 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00095/0.6039, allocations: 261.2 kB / 433.3 MB, free: 7.184 MB / 334.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.0271/0.6311, allocations: 7.009 MB / 440.3 MB, free: 156 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.007792/0.6389, allocations: 2.338 MB / 442.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.639, allocations: 0 / 442.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003888/0.6429, allocations: 1.158 MB / 443.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.6439, allocations: 129.5 kB / 443.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06022/0.7042, allocations: 17.44 MB / 461.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006931/0.7049, allocations: 0.951 MB / 462.3 MB, free: 9.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004424/0.7054, allocations: 62.2 kB / 462.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004383/0.7058, allocations: 271.3 kB / 462.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.7059, allocations: 0 / 462.6 MB, free: 9.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05158/0.7575, allocations: 26.99 MB / 489.6 MB, free: 14.76 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/0.7577, allocations: 241.6 kB / 489.9 MB, free: 14.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.828/3.585, allocations: 4.062 kB / 489.9 MB, free: 14.5 MB / 398.1 MB (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 --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) 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) Reference file matches