Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_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.001181/0.001181, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001132/0.001132, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.267/1.267, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 52.27 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09304, allocations: 46.62 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006364/0.09946, allocations: 4.715 MB / 331.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.1023, allocations: 1.269 MB / 332.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006401/0.103, allocations: 15.94 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000412/0.1035, allocations: 83.3 kB / 332.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007716/0.1042, allocations: 210.2 kB / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007424/0.105, allocations: 259.7 kB / 333.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001155/0.1062, allocations: 0.9859 MB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.1066, allocations: 223.3 kB / 334.4 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006045/0.1072, allocations: 370.5 kB / 334.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005831/0.1078, allocations: 426.1 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.108, allocations: 52 kB / 335.3 MB, free: 12.15 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002529/0.1082, allocations: 79.98 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.1084, allocations: 159.3 kB / 335.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003793/0.1088, allocations: 397.9 kB / 335.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008034/0.1096, allocations: 0.9306 MB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1096, allocations: 3.938 kB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1096, allocations: 0 / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.1096, allocations: 0 / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002474/0.1121, allocations: 1.211 MB / 338 MB, free: 9.309 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.1122, allocations: 8.031 kB / 338 MB, free: 9.301 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.1123, allocations: 102.7 kB / 338.1 MB, free: 9.191 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.1124, allocations: 87.91 kB / 338.2 MB, free: 9.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000542/0.113, allocations: 461.4 kB / 338.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.798e-05/0.113, allocations: 49.69 kB / 338.7 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.1131, allocations: 68.31 kB / 338.8 MB, free: 8.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.1145, allocations: 0.6312 MB / 339.4 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1145, allocations: 0 / 339.4 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-05/0.1146, allocations: 31.98 kB / 339.5 MB, free: 7.828 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.1146, allocations: 16 kB / 339.5 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.1163, allocations: 0.6687 MB / 340.1 MB, free: 7.145 MB / 286.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.003992/0.1203, allocations: 2.335 MB / 342.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.1217, allocations: 0.5905 MB / 343.1 MB, free: 4.055 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007298/0.1225, allocations: 326 kB / 343.4 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-05/0.1226, allocations: 8.438 kB / 343.4 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00104/0.1236, allocations: 429.4 kB / 343.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.725e-06/0.1236, allocations: 0 / 343.8 MB, free: 3.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07122/0.1949, allocations: 15.4 MB / 359.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000128/0.195, allocations: 145.5 kB / 359.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006842/0.1957, allocations: 494.8 kB / 359.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/0.196, allocations: 45.7 kB / 359.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.1963, allocations: 371.9 kB / 360.2 MB, free: 2.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.1967, allocations: 311.5 kB / 360.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004599/0.1972, allocations: 178.5 kB / 360.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.1974, allocations: 382.8 kB / 361.1 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002062/0.1994, allocations: 0.7202 MB / 361.8 MB, free: 1.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.2015, allocations: 0.9304 MB / 362.7 MB, free: 104 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00407/0.2056, allocations: 1.658 MB / 364.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.08e-05/0.2057, allocations: 4 kB / 364.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02338/0.2291, allocations: 5.343 MB / 369.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.541e-05/0.2292, allocations: 63.41 kB / 369.8 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.2292, allocations: 4 kB / 369.8 MB, free: 8.906 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0342/0.2634, allocations: 6.828 MB / 376.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007334/0.2642, allocations: 147.7 kB / 376.8 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1488/0.413, allocations: 3.005 MB / 379.8 MB, free: 52.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.4148, allocations: 180.5 kB / 380 MB, free: 52.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.415, allocations: 49.17 kB / 380 MB, free: 52.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (50): * Single equations (assignments): 46 * 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.0005088/0.4155, allocations: 221.9 kB / 380.2 MB, free: 52.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.4157, allocations: 82.44 kB / 380.3 MB, free: 52.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02362/0.4394, allocations: 5.1 MB / 385.4 MB, free: 52.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/0.4394, allocations: 9.312 kB / 385.4 MB, free: 52.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.4394, allocations: 7.516 kB / 385.4 MB, free: 52.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.636e-05/0.4395, allocations: 4.719 kB / 385.4 MB, free: 52.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.4411, allocations: 1.086 MB / 386.5 MB, free: 51.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/0.4412, allocations: 0 / 386.5 MB, free: 51.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/0.4417, allocations: 89.19 kB / 386.6 MB, free: 51.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03183/0.4736, allocations: 6.8 MB / 393.4 MB, free: 50.37 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002539/0.4739, allocations: 26.3 kB / 393.4 MB, free: 50.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005323/0.4792, allocations: 3.037 MB / 396.5 MB, free: 48.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.4792, allocations: 0 / 396.5 MB, free: 48.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02272/0.502, allocations: 5.99 MB / 402.5 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000322/0.5023, allocations: 136.7 kB / 402.6 MB, free: 42.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004057/0.5028, allocations: 27.92 kB / 402.6 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.5043, allocations: 171.9 kB / 402.8 MB, free: 42.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000339/0.5047, allocations: 92.86 kB / 402.9 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.5048, allocations: 35.97 kB / 402.9 MB, free: 42.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003942/0.5052, allocations: 338 kB / 403.2 MB, free: 42.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.5052, allocations: 0 / 403.2 MB, free: 42.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009485/0.5062, allocations: 252.8 kB / 403.5 MB, free: 41.98 MB / 318.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.02331/0.5295, allocations: 6.568 MB / 410.1 MB, free: 35.39 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00569/0.5352, allocations: 2.021 MB / 412.1 MB, free: 33.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.5353, allocations: 4.375 kB / 412.1 MB, free: 33.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003204/0.5385, allocations: 1.081 MB / 413.2 MB, free: 32.27 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008795/0.5394, allocations: 134.5 kB / 413.3 MB, free: 32.15 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04978/0.5892, allocations: 16.29 MB / 429.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.5896, allocations: 0.935 MB / 430.5 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003844/0.59, allocations: 52.39 kB / 430.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.5904, allocations: 259.3 kB / 430.8 MB, free: 14.38 MB / 318.1 MB Notification: Performance of SimCode: time 2.094e-06/0.5904, allocations: 3.938 kB / 430.8 MB, free: 14.38 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.87/5.46, allocations: 27.24 MB / 458.1 MB, free: 3.078 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/5.461, allocations: 239.1 kB / 458.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.928/8.389, allocations: 0 / 458.3 MB, free: 2.82 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches