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.001128/0.001128, allocations: 105.6 kB / 16.92 MB, free: 5.715 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.001258/0.001258, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.603/1.603, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009133/0.0009134, allocations: 50.02 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1281, allocations: 49.43 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006262/0.1344, allocations: 4.938 MB / 355.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002483/0.1369, allocations: 1.264 MB / 356.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003064/0.1372, allocations: 16 kB / 356.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003253/0.1376, allocations: 122.7 kB / 356.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004599/0.1381, allocations: 253.7 kB / 356.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006615/0.1387, allocations: 307.5 kB / 357 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.1398, allocations: 1.099 MB / 358.1 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004203/0.1402, allocations: 262.5 kB / 358.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004574/0.1407, allocations: 418.5 kB / 358.8 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005192/0.1412, allocations: 466.1 kB / 359.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.1413, allocations: 84 kB / 359.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.1416, allocations: 112 kB / 359.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.1417, allocations: 195.3 kB / 359.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004209/0.1422, allocations: 449.8 kB / 360.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009639/0.1431, allocations: 0.9968 MB / 361.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1432, allocations: 4 kB / 361.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1432, allocations: 0 / 361.1 MB, free: 9.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.1432, allocations: 0 / 361.1 MB, free: 9.344 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.002483/0.1457, allocations: 1.25 MB / 362.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.1457, allocations: 12.03 kB / 362.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001168/0.1459, allocations: 106.7 kB / 362.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.146, allocations: 99.75 kB / 362.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005766/0.1466, allocations: 487.4 kB / 363 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.1467, allocations: 45.69 kB / 363.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.1468, allocations: 64.38 kB / 363.1 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.1481, allocations: 0.6624 MB / 363.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.1482, allocations: 0 / 363.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.282e-05/0.1483, allocations: 28 kB / 363.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.1483, allocations: 16 kB / 363.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001686/0.15, allocations: 0.6883 MB / 364.5 MB, free: 5.781 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.004175/0.1542, allocations: 2.394 MB / 366.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.1557, allocations: 0.5793 MB / 367.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008441/0.1565, allocations: 330 kB / 367.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.838e-05/0.1566, allocations: 16.42 kB / 367.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001142/0.1577, allocations: 425.4 kB / 368.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 3.206e-06/0.1577, allocations: 0 / 368.3 MB, free: 1.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3198/0.4776, allocations: 15.41 MB / 383.7 MB, free: 22.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.888e-05/0.4777, allocations: 141.3 kB / 383.8 MB, free: 22.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007874/0.4785, allocations: 0.5163 MB / 384.3 MB, free: 21.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001978/0.4787, allocations: 46.27 kB / 384.4 MB, free: 21.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.479, allocations: 382.4 kB / 384.7 MB, free: 21.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002798/0.4792, allocations: 313.1 kB / 385 MB, free: 21.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003585/0.4796, allocations: 188.3 kB / 385.2 MB, free: 21.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4797, allocations: 388.4 kB / 385.6 MB, free: 20.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/0.4818, allocations: 0.7231 MB / 386.3 MB, free: 20.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002004/0.4839, allocations: 0.959 MB / 387.3 MB, free: 19.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.4874, allocations: 1.695 MB / 389 MB, free: 18.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.4875, allocations: 1.906 kB / 389 MB, free: 18.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0207/0.5082, allocations: 5.376 MB / 394.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.87e-05/0.5083, allocations: 74.36 kB / 394.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.213e-05/0.5083, allocations: 4 kB / 394.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03038/0.5387, allocations: 6.837 MB / 401.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008622/0.5397, allocations: 143.7 kB / 401.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005318/0.545, allocations: 3.02 MB / 404.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.5467, allocations: 171.9 kB / 404.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.986e-05/0.5468, allocations: 47.97 kB / 404.6 MB, free: 3.539 MB / 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.0004529/0.5473, allocations: 236.9 kB / 404.9 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.5474, allocations: 79.06 kB / 405 MB, free: 3.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02066/0.5681, allocations: 5.1 MB / 410.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/0.5681, allocations: 12 kB / 410.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.5682, allocations: 0 / 410.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.242e-05/0.5682, allocations: 6.547 kB / 410.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001693/0.5699, allocations: 1.109 MB / 411.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.259e-06/0.5699, allocations: 1.5 kB / 411.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005253/0.5704, allocations: 91.89 kB / 411.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03283/0.6033, allocations: 6.781 MB / 418.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002705/0.6036, allocations: 27.97 kB / 418.1 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006176/0.6098, allocations: 3.036 MB / 421.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6098, allocations: 0 / 421.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0242/0.634, allocations: 5.996 MB / 427.1 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003686/0.6344, allocations: 144.2 kB / 427.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/0.6346, allocations: 19.94 kB / 427.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.636, allocations: 167.8 kB / 427.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/0.6362, allocations: 96.88 kB / 427.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.539e-05/0.6363, allocations: 35.47 kB / 427.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004457/0.6368, allocations: 362.8 kB / 427.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6368, allocations: 0 / 427.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008396/0.6376, allocations: 256 kB / 428.2 MB, free: 11.87 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.0241/0.6618, allocations: 6.562 MB / 434.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006241/0.668, allocations: 2.052 MB / 436.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6681, allocations: 1.375 kB / 436.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003406/0.6715, allocations: 1.099 MB / 437.9 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008685/0.6724, allocations: 140.7 kB / 438 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05388/0.7263, allocations: 16.2 MB / 454.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006143/0.7269, allocations: 0.9545 MB / 455.2 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004365/0.7274, allocations: 57.61 kB / 455.2 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.7277, allocations: 275.3 kB / 455.5 MB, free: 180 kB / 350.1 MB Notification: Performance of SimCode: time 1.864e-06/0.7277, allocations: 0 / 455.5 MB, free: 180 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.314/2.042, allocations: 29.44 MB / 484.9 MB, free: 2.965 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/15.5, allocations: 7.578 kB / 484.9 MB, free: 2.961 MB / 382.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