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.001346/0.001346, allocations: 114.5 kB / 17.73 MB, free: 5.297 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.001382/0.001382, allocations: 187 kB / 18.67 MB, free: 4.367 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.524/1.524, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001673/0.001674, allocations: 55.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1095, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006821/0.1164, allocations: 4.696 MB / 379.4 MB, free: 340 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2492/0.3656, allocations: 1.267 MB / 380.6 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006186/0.3663, allocations: 12.25 kB / 380.6 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003667/0.3667, allocations: 112.3 kB / 380.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000715/0.3674, allocations: 254.7 kB / 381 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.3685, allocations: 300.3 kB / 381.3 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001722/0.3702, allocations: 1.055 MB / 382.3 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006049/0.3708, allocations: 265.7 kB / 382.6 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.3719, allocations: 411.2 kB / 383 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008946/0.3728, allocations: 455.7 kB / 383.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001745/0.373, allocations: 84.44 kB / 383.5 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003178/0.3733, allocations: 109.7 kB / 383.6 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000188/0.3735, allocations: 188.3 kB / 383.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004725/0.374, allocations: 429.8 kB / 384.2 MB, free: 8.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.3756, allocations: 0.9732 MB / 385.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3756, allocations: 0 / 385.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3756, allocations: 1.156 kB / 385.2 MB, free: 7.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.3757, allocations: 4 kB / 385.2 MB, free: 7.84 MB / 318.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.002954/0.3786, allocations: 1.239 MB / 386.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.479e-05/0.3787, allocations: 8.906 kB / 386.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001604/0.3789, allocations: 102.6 kB / 386.6 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002512/0.3791, allocations: 96.75 kB / 386.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008469/0.38, allocations: 470.4 kB / 387.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.576e-05/0.38, allocations: 43.61 kB / 387.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.3802, allocations: 62.17 kB / 387.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.3818, allocations: 0.6379 MB / 387.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.445e-05/0.3819, allocations: 1.781 kB / 387.9 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.044e-05/0.382, allocations: 26.56 kB / 387.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.382, allocations: 15.03 kB / 387.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00203/0.384, allocations: 0.6814 MB / 388.6 MB, free: 5.996 MB / 318.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.004962/0.389, allocations: 2.315 MB / 390.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/0.3908, allocations: 0.5834 MB / 391.5 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009323/0.3918, allocations: 334.9 kB / 391.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.983e-05/0.3919, allocations: 12.62 kB / 391.8 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.3931, allocations: 429.3 kB / 392.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 3.567e-06/0.3931, allocations: 1.031 kB / 392.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.07111/0.4642, allocations: 15.44 MB / 407.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/0.4644, allocations: 141.5 kB / 407.8 MB, free: 13.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008225/0.4652, allocations: 490.9 kB / 408.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000313/0.4655, allocations: 49.64 kB / 408.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.4659, allocations: 375.4 kB / 408.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.4663, allocations: 329.7 kB / 409 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003976/0.4667, allocations: 186.5 kB / 409.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4669, allocations: 378.8 kB / 409.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002149/0.469, allocations: 0.7201 MB / 410.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002263/0.4713, allocations: 0.9271 MB / 411.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004202/0.4755, allocations: 1.654 MB / 412.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.4756, allocations: 8 kB / 412.9 MB, free: 8 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02294/0.4985, allocations: 5.342 MB / 418.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.977e-05/0.4986, allocations: 67.39 kB / 418.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.4987, allocations: 4 kB / 418.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03293/0.5316, allocations: 6.828 MB / 425.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007317/0.5324, allocations: 136.5 kB / 425.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005858/0.5383, allocations: 3.03 MB / 428.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.5401, allocations: 171.9 kB / 428.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.5402, allocations: 43.97 kB / 428.5 MB, free: 8.293 MB / 350.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.0004527/0.5407, allocations: 225.7 kB / 428.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.5409, allocations: 75.53 kB / 428.8 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02135/0.5622, allocations: 5.103 MB / 433.9 MB, free: 2.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.851e-05/0.5623, allocations: 15.94 kB / 433.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.5623, allocations: 0 / 433.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-05/0.5624, allocations: 3.984 kB / 433.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.5642, allocations: 1.097 MB / 435 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.607e-06/0.5642, allocations: 0 / 435 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/0.5648, allocations: 103.8 kB / 435.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03262/0.5974, allocations: 6.779 MB / 441.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003182/0.5978, allocations: 27.97 kB / 441.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005811/0.6036, allocations: 3.038 MB / 445 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6036, allocations: 0 / 445 MB, free: 7.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02384/0.6275, allocations: 5.983 MB / 451 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003971/0.6279, allocations: 152.5 kB / 451.1 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002517/0.6282, allocations: 20 kB / 451.1 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/0.6296, allocations: 171.8 kB / 451.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.6299, allocations: 96.88 kB / 451.4 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.543e-05/0.63, allocations: 31.97 kB / 451.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000421/0.6304, allocations: 334.9 kB / 451.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6305, allocations: 0 / 451.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008395/0.6313, allocations: 252 kB / 452 MB, free: 0.6641 MB / 366.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.02432/0.6556, allocations: 6.57 MB / 458.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006226/0.6619, allocations: 2.042 MB / 460.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.662, allocations: 0 / 460.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003643/0.6656, allocations: 1.088 MB / 461.7 MB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.6667, allocations: 130 kB / 461.8 MB, free: 6.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05569/0.7224, allocations: 15.78 MB / 477.6 MB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.723, allocations: 0.9311 MB / 478.5 MB, free: 5.809 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004321/0.7234, allocations: 54.08 kB / 478.6 MB, free: 5.754 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003999/0.7238, allocations: 263.3 kB / 478.8 MB, free: 5.496 MB / 398.1 MB Notification: Performance of SimCode: time 3.727e-06/0.7238, allocations: 4 kB / 478.8 MB, free: 5.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06647/0.7903, allocations: 29.38 MB / 0.4963 GB, free: 8.027 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.6, allocations: 3.984 kB / 0.4963 GB, free: 8.023 MB / 430.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 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.csv","/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches