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.001856/0.001856, allocations: 110.2 kB / 17.07 MB, free: 6.016 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.002112/0.002112, allocations: 189.4 kB / 18 MB, free: 5.098 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.439/1.439, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 51.91 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2656, allocations: 49.43 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007/0.2727, allocations: 4.939 MB / 405.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002986/0.2757, allocations: 1.272 MB / 406.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006252/0.2763, allocations: 11.94 kB / 406.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004581/0.2768, allocations: 126.7 kB / 406.6 MB, free: 2.434 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009444/0.2779, allocations: 249.7 kB / 406.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009225/0.2788, allocations: 307.5 kB / 407.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.2802, allocations: 1.107 MB / 408.3 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004964/0.2808, allocations: 258.5 kB / 408.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007018/0.2815, allocations: 418.6 kB / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000765/0.2823, allocations: 470 kB / 409.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000187/0.2824, allocations: 84 kB / 409.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002572/0.2827, allocations: 112 kB / 409.6 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.2829, allocations: 195.3 kB / 409.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00048/0.2834, allocations: 445.8 kB / 410.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.2846, allocations: 1.011 MB / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2846, allocations: 0 / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2846, allocations: 0 / 411.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.2846, allocations: 0 / 411.2 MB, free: 13.8 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.00267/0.2873, allocations: 1.289 MB / 412.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2873, allocations: 8.031 kB / 412.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.2875, allocations: 106.7 kB / 412.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001598/0.2876, allocations: 96.38 kB / 412.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006805/0.2883, allocations: 499.9 kB / 413.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.243e-05/0.2884, allocations: 45.69 kB / 413.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.2885, allocations: 68.36 kB / 413.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001467/0.29, allocations: 0.6507 MB / 413.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.29, allocations: 0 / 413.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.55e-05/0.2901, allocations: 32 kB / 414 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.2901, allocations: 16 kB / 414 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/0.2919, allocations: 0.696 MB / 414.7 MB, free: 10.18 MB / 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.004152/0.2961, allocations: 2.387 MB / 417.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.2976, allocations: 0.5866 MB / 417.7 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007981/0.2984, allocations: 330 kB / 418 MB, free: 6.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.982e-05/0.2985, allocations: 12.42 kB / 418 MB, free: 6.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009808/0.2995, allocations: 421.5 kB / 418.4 MB, free: 6.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=54): time 2.395e-06/0.2995, allocations: 3.938 kB / 418.4 MB, free: 6.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=94): time 0.07211/0.3716, allocations: 15.43 MB / 433.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.3718, allocations: 149.5 kB / 434 MB, free: 6.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007115/0.3725, allocations: 0.5147 MB / 434.5 MB, free: 6.043 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001969/0.3727, allocations: 49.64 kB / 434.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003388/0.3731, allocations: 396.7 kB / 434.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003827/0.3734, allocations: 333.2 kB / 435.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004261/0.3739, allocations: 178.5 kB / 435.4 MB, free: 5.086 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.3741, allocations: 394.7 kB / 435.8 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002226/0.3763, allocations: 0.7205 MB / 436.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002429/0.3788, allocations: 0.9512 MB / 437.5 MB, free: 2.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004683/0.3835, allocations: 1.701 MB / 439.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.3835, allocations: 0 / 439.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02439/0.4079, allocations: 5.375 MB / 444.6 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.08e-05/0.408, allocations: 59.41 kB / 444.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.652e-05/0.4081, allocations: 8 kB / 444.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03504/0.4431, allocations: 6.829 MB / 451.5 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00078/0.4439, allocations: 155.7 kB / 451.6 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006667/0.4506, allocations: 3.017 MB / 454.6 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.4524, allocations: 179.8 kB / 454.8 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/0.4525, allocations: 47.92 kB / 454.9 MB, free: 1.359 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.000466/0.453, allocations: 225.6 kB / 455.1 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.4532, allocations: 87.52 kB / 455.2 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0232/0.4764, allocations: 5.103 MB / 460.3 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.4765, allocations: 8 kB / 460.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.011e-05/0.4765, allocations: 4 kB / 460.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.964e-05/0.4766, allocations: 7.984 kB / 460.3 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/0.4784, allocations: 1.116 MB / 461.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.4784, allocations: 0 / 461.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006728/0.4791, allocations: 91.88 kB / 461.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03464/0.5138, allocations: 6.789 MB / 468.3 MB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002683/0.5141, allocations: 23.98 kB / 468.3 MB, free: 3.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00654/0.5206, allocations: 3.04 MB / 471.3 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/0.5207, allocations: 3.938 kB / 471.3 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02526/0.546, allocations: 5.98 MB / 477.3 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.5462, allocations: 152.5 kB / 477.5 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002283/0.5465, allocations: 16 kB / 477.5 MB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.548, allocations: 167.9 kB / 477.7 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000294/0.5483, allocations: 104.9 kB / 477.8 MB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/0.5484, allocations: 27.98 kB / 477.8 MB, free: 10.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004817/0.5489, allocations: 354.8 kB / 478.1 MB, free: 9.883 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5489, allocations: 0 / 478.1 MB, free: 9.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007899/0.5497, allocations: 263.9 kB / 478.4 MB, free: 9.625 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.02607/0.5758, allocations: 6.573 MB / 485 MB, free: 3.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006586/0.5824, allocations: 2.052 MB / 487 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5825, allocations: 384 / 487 MB, free: 0.9336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003767/0.5862, allocations: 1.093 MB / 488.1 MB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007889/0.587, allocations: 126.2 kB / 488.2 MB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07317/0.6602, allocations: 16 MB / 0.4924 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008146/0.6611, allocations: 0.9468 MB / 0.4933 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004776/0.6616, allocations: 58.27 kB / 0.4934 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005791/0.6622, allocations: 279.3 kB / 0.4937 GB, free: 14.09 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6622, allocations: 0 / 0.4937 GB, free: 14.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09542/0.7577, allocations: 29.79 MB / 0.5227 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.13, allocations: 3.75 kB / 0.5228 GB, free: 0.5312 MB / 446.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