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.001964/0.001964, allocations: 116.7 kB / 16.63 MB, free: 6.812 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.002083/0.002083, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.516/1.516, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001077/0.001077, allocations: 44.23 kB / 300.2 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1145, allocations: 49.44 MB / 349.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006505/0.1211, allocations: 4.945 MB / 354.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.1239, allocations: 1.26 MB / 355.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006712/0.1246, allocations: 12 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003546/0.125, allocations: 87.23 kB / 356 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006101/0.1256, allocations: 214.2 kB / 356.2 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008074/0.1264, allocations: 275.6 kB / 356.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001102/0.1276, allocations: 1.095 MB / 357.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000392/0.128, allocations: 270.5 kB / 357.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.1284, allocations: 418.5 kB / 358.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005428/0.129, allocations: 466 kB / 358.7 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.1291, allocations: 88 kB / 358.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002112/0.1293, allocations: 112 kB / 358.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.1295, allocations: 191.3 kB / 359.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003882/0.1299, allocations: 445.8 kB / 359.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001032/0.131, allocations: 0.9929 MB / 360.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.091e-05/0.131, allocations: 3.984 kB / 360.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.131, allocations: 0 / 360.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.131, allocations: 4 kB / 360.5 MB, free: 9.754 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.002566/0.1336, allocations: 1.258 MB / 361.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.1336, allocations: 11.97 kB / 361.8 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.1338, allocations: 110.7 kB / 361.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001711/0.134, allocations: 95.81 kB / 362 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006483/0.1346, allocations: 479.5 kB / 362.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.1347, allocations: 57.56 kB / 362.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.1348, allocations: 60.38 kB / 362.6 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.1362, allocations: 0.6586 MB / 363.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.1362, allocations: 0 / 363.2 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.021e-05/0.1363, allocations: 27.98 kB / 363.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.531e-05/0.1364, allocations: 16 kB / 363.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001658/0.138, allocations: 0.6922 MB / 364 MB, free: 6.18 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.004151/0.1422, allocations: 2.394 MB / 366.3 MB, free: 3.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.1436, allocations: 0.5749 MB / 366.9 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007282/0.1444, allocations: 334 kB / 367.2 MB, free: 2.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.089e-05/0.1445, allocations: 12.41 kB / 367.3 MB, free: 2.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001049/0.1455, allocations: 421.4 kB / 367.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.525e-06/0.1455, allocations: 4 kB / 367.7 MB, free: 2.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.2743/0.4198, allocations: 15.41 MB / 383.1 MB, free: 22.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.4199, allocations: 145.1 kB / 383.2 MB, free: 22.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005194/0.4204, allocations: 0.5188 MB / 383.7 MB, free: 22.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000153/0.4206, allocations: 43.73 kB / 383.8 MB, free: 22.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.4208, allocations: 390.6 kB / 384.2 MB, free: 21.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.421, allocations: 308.1 kB / 384.5 MB, free: 21.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003374/0.4214, allocations: 184.8 kB / 384.6 MB, free: 21.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.4215, allocations: 391.6 kB / 385 MB, free: 21.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001822/0.4233, allocations: 0.7195 MB / 385.7 MB, free: 20.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.4252, allocations: 0.959 MB / 386.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003458/0.4287, allocations: 1.691 MB / 388.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.4287, allocations: 3.906 kB / 388.4 MB, free: 19.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02139/0.4501, allocations: 5.38 MB / 393.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.58e-05/0.4502, allocations: 59.41 kB / 393.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.4502, allocations: 12.12 kB / 393.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03225/0.4825, allocations: 6.834 MB / 400.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007038/0.4832, allocations: 151.8 kB / 400.8 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005555/0.4888, allocations: 3.009 MB / 403.8 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/0.4906, allocations: 183.8 kB / 404 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.4908, allocations: 43.98 kB / 404.1 MB, free: 4.156 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.0004555/0.4912, allocations: 229.6 kB / 404.3 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.4915, allocations: 83 kB / 404.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02202/0.5135, allocations: 5.09 MB / 409.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.5136, allocations: 15.09 kB / 409.5 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.5136, allocations: 7.75 kB / 409.5 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.121e-05/0.5136, allocations: 7.969 kB / 409.5 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.5155, allocations: 1.106 MB / 410.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/0.5155, allocations: 0 / 410.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005658/0.5161, allocations: 99.81 kB / 410.7 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03527/0.5514, allocations: 6.79 MB / 417.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002347/0.5516, allocations: 27.92 kB / 417.5 MB, free: 6.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007431/0.5591, allocations: 3.025 MB / 420.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.5591, allocations: 0.8594 kB / 420.5 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03676/0.5959, allocations: 5.986 MB / 426.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005936/0.5966, allocations: 144.1 kB / 426.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005712/0.5972, allocations: 29.36 kB / 426.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002461/0.5997, allocations: 167.8 kB / 426.9 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005336/0.6002, allocations: 96.86 kB / 426.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002364/0.6005, allocations: 31.98 kB / 427 MB, free: 13.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008415/0.6014, allocations: 358.8 kB / 427.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6014, allocations: 0 / 427.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001668/0.6031, allocations: 257 kB / 427.6 MB, free: 12.49 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.03792/0.641, allocations: 6.565 MB / 434.1 MB, free: 5.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.009381/0.6504, allocations: 2.062 MB / 436.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/0.6505, allocations: 0 / 436.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005422/0.6559, allocations: 1.091 MB / 437.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.6575, allocations: 137.2 kB / 437.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06104/0.7186, allocations: 16.54 MB / 454 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006508/0.7193, allocations: 0.9507 MB / 454.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004151/0.7198, allocations: 58.31 kB / 455 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004286/0.7202, allocations: 275.3 kB / 455.3 MB, free: 480 kB / 350.1 MB Notification: Performance of SimCode: time 1.423e-06/0.7202, allocations: 0 / 455.3 MB, free: 480 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0572/0.7774, allocations: 28.97 MB / 484.2 MB, free: 3.758 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002094/0.7777, allocations: 235.3 kB / 484.5 MB, free: 3.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.954/3.732, allocations: 4 kB / 484.5 MB, free: 3.5 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