Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0011/0.0011, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001484, allocations: 64.06 kB / 306.3 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1145, allocations: 50.53 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006559/0.1211, allocations: 4.973 MB / 361.9 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.124, allocations: 1.295 MB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007248/0.1247, allocations: 12 kB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004084/0.1252, allocations: 91.23 kB / 363.3 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007584/0.126, allocations: 222.1 kB / 363.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007922/0.1268, allocations: 263.7 kB / 363.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001325/0.1281, allocations: 1.036 MB / 364.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004392/0.1286, allocations: 227.4 kB / 365 MB, free: 6.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006455/0.1292, allocations: 378.5 kB / 365.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007663/0.13, allocations: 438 kB / 365.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002073/0.1302, allocations: 56 kB / 365.8 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002736/0.1305, allocations: 79.97 kB / 365.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.1307, allocations: 159.3 kB / 366.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005446/0.1312, allocations: 409.8 kB / 366.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008222/0.1321, allocations: 0.9694 MB / 367.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1321, allocations: 0 / 367.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1321, allocations: 4 kB / 367.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.174e-05/0.1321, allocations: 0 / 367.4 MB, free: 3.789 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.002523/0.1347, allocations: 1.253 MB / 368.7 MB, free: 2.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.1347, allocations: 8.031 kB / 368.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.1349, allocations: 110.7 kB / 368.8 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.135, allocations: 95.81 kB / 368.9 MB, free: 2.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005943/0.1356, allocations: 487.4 kB / 369.4 MB, free: 1.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.93e-05/0.1357, allocations: 45.69 kB / 369.4 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.45e-05/0.1358, allocations: 68.36 kB / 369.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.1371, allocations: 0.6546 MB / 370.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.1371, allocations: 0 / 370.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.079e-05/0.1372, allocations: 28 kB / 370.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1372, allocations: 16 kB / 370.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.1389, allocations: 0.6999 MB / 370.9 MB, free: 228 kB / 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.1476/0.2865, allocations: 2.368 MB / 373.3 MB, free: 19.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/0.2879, allocations: 0.5872 MB / 373.8 MB, free: 19.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007412/0.2887, allocations: 331.6 kB / 374.2 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.2887, allocations: 13.73 kB / 374.2 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001099/0.2899, allocations: 428.1 kB / 374.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.104e-06/0.2899, allocations: 0.8125 kB / 374.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.06701/0.3569, allocations: 15.42 MB / 390 MB, free: 13.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3569, allocations: 145.4 kB / 390.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/0.3574, allocations: 0.5193 MB / 390.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.3576, allocations: 49.45 kB / 390.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.3577, allocations: 394.8 kB / 391.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/0.3579, allocations: 309.6 kB / 391.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003066/0.3582, allocations: 185 kB / 391.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.679e-05/0.3583, allocations: 388.1 kB / 392 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001792/0.3601, allocations: 0.7217 MB / 392.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001768/0.3619, allocations: 0.9512 MB / 393.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003318/0.3652, allocations: 1.689 MB / 395.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3652, allocations: 4 kB / 395.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02172/0.387, allocations: 5.374 MB / 400.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.3871, allocations: 63.39 kB / 400.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.3871, allocations: 11.75 kB / 400.8 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03256/0.4196, allocations: 6.825 MB / 407.6 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006833/0.4204, allocations: 147.7 kB / 407.8 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005765/0.4261, allocations: 3.025 MB / 410.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.4278, allocations: 179.8 kB / 411 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001026/0.4279, allocations: 51.97 kB / 411 MB, free: 8.992 MB / 318.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.0004142/0.4283, allocations: 225.6 kB / 411.2 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.4284, allocations: 83.05 kB / 411.3 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02223/0.4507, allocations: 5.103 MB / 416.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.4507, allocations: 11.98 kB / 416.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.4507, allocations: 0 / 416.4 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.75e-05/0.4508, allocations: 3.984 kB / 416.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.4522, allocations: 1.091 MB / 417.5 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4522, allocations: 3.938 kB / 417.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.4527, allocations: 95.88 kB / 417.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03259/0.4853, allocations: 6.802 MB / 424.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001824/0.4856, allocations: 31.34 kB / 424.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005608/0.4912, allocations: 3.021 MB / 427.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.4912, allocations: 0 / 427.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02428/0.5155, allocations: 5.981 MB / 433.5 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.5157, allocations: 148.1 kB / 433.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.5159, allocations: 16 kB / 433.6 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.5174, allocations: 179.8 kB / 433.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002607/0.5176, allocations: 94.73 kB / 433.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.701e-05/0.5178, allocations: 39.97 kB / 433.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003655/0.5181, allocations: 353.7 kB / 434.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5181, allocations: 0 / 434.3 MB, free: 1.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000734/0.5189, allocations: 260 kB / 434.5 MB, free: 1.332 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.02367/0.5426, allocations: 6.564 MB / 441.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005591/0.5482, allocations: 2.039 MB / 443.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5482, allocations: 0 / 443.1 MB, free: 8.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003316/0.5515, allocations: 1.081 MB / 444.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007568/0.5523, allocations: 140.9 kB / 444.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05351/0.6058, allocations: 16.54 MB / 460.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004724/0.6063, allocations: 0.9507 MB / 461.8 MB, free: 5.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003329/0.6067, allocations: 58.27 kB / 461.9 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003252/0.607, allocations: 275.3 kB / 462.2 MB, free: 5.305 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.607, allocations: 0 / 462.2 MB, free: 5.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04168/0.6487, allocations: 27.59 MB / 489.8 MB, free: 9.961 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001662/0.6489, allocations: 234.6 kB / 490 MB, free: 9.711 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.582/3.231, allocations: 0 / 490 MB, free: 9.711 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches