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.001792/0.001792, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001935/0.001935, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.585/1.585, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.00278/0.00278, allocations: 55.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1141, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00614/0.1203, allocations: 4.696 MB / 379.4 MB, free: 344 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2244/0.3447, allocations: 1.272 MB / 380.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008327/0.3457, allocations: 12.34 kB / 380.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004313/0.3461, allocations: 114.9 kB / 380.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008116/0.3469, allocations: 245.2 kB / 381 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.348, allocations: 296.4 kB / 381.3 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001517/0.3495, allocations: 1.055 MB / 382.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005109/0.35, allocations: 257.5 kB / 382.6 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008098/0.3509, allocations: 414.2 kB / 383 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007112/0.3516, allocations: 459.1 kB / 383.4 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002015/0.3518, allocations: 85.12 kB / 383.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003376/0.3522, allocations: 106.7 kB / 383.6 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.3523, allocations: 187 kB / 383.8 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004333/0.3528, allocations: 426 kB / 384.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.3544, allocations: 0.9797 MB / 385.2 MB, free: 7.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.3544, allocations: 1.078 kB / 385.2 MB, free: 7.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.3544, allocations: 0 / 385.2 MB, free: 7.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.85e-05/0.3545, allocations: 0 / 385.2 MB, free: 7.852 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.003953/0.3585, allocations: 1.236 MB / 386.4 MB, free: 7.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.27e-05/0.3586, allocations: 13.88 kB / 386.5 MB, free: 7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001909/0.3588, allocations: 105.8 kB / 386.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003381/0.3591, allocations: 92.44 kB / 386.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.3603, allocations: 466.7 kB / 387.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.793e-05/0.3604, allocations: 51.59 kB / 387.2 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.3606, allocations: 61.77 kB / 387.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00175/0.3623, allocations: 0.6387 MB / 387.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.3624, allocations: 0 / 387.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.626e-05/0.3624, allocations: 28.72 kB / 387.9 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.207e-05/0.3625, allocations: 13.44 kB / 387.9 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.3645, allocations: 0.6741 MB / 388.6 MB, free: 6.008 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.005776/0.3703, allocations: 2.315 MB / 390.9 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/0.3723, allocations: 0.5839 MB / 391.5 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008674/0.3732, allocations: 339.7 kB / 391.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.749e-05/0.3732, allocations: 8.891 kB / 391.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001063/0.3743, allocations: 434.5 kB / 392.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of pre-optimization done (n=54): time 2.855e-06/0.3743, allocations: 0 / 392.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=94): time 0.07336/0.4477, allocations: 15.43 MB / 407.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.4479, allocations: 145.5 kB / 407.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008008/0.4487, allocations: 490.9 kB / 408.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000311/0.449, allocations: 45.7 kB / 408.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003508/0.4494, allocations: 375.1 kB / 408.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003757/0.4498, allocations: 327.4 kB / 409 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004282/0.4502, allocations: 186.5 kB / 409.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.4504, allocations: 382.8 kB / 409.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.4526, allocations: 0.7163 MB / 410.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002363/0.455, allocations: 0.9303 MB / 411.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00462/0.4597, allocations: 1.655 MB / 412.9 MB, free: 8.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.4597, allocations: 4 kB / 412.9 MB, free: 8.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02438/0.4841, allocations: 5.345 MB / 418.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.4842, allocations: 67.39 kB / 418.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.4843, allocations: 4 kB / 418.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03578/0.5201, allocations: 6.822 MB / 425.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007504/0.5209, allocations: 144.5 kB / 425.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008354/0.5292, allocations: 3.023 MB / 428.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/0.5318, allocations: 171.9 kB / 428.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002982/0.5322, allocations: 47.97 kB / 428.5 MB, free: 8.297 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.0008238/0.533, allocations: 225.6 kB / 428.7 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003776/0.5334, allocations: 75.53 kB / 428.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02354/0.557, allocations: 5.102 MB / 433.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-05/0.5571, allocations: 8 kB / 433.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5571, allocations: 3.938 kB / 433.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.482e-05/0.5571, allocations: 7.922 kB / 433.9 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.5594, allocations: 1.097 MB / 435 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.5595, allocations: 0 / 435 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007425/0.5602, allocations: 99.88 kB / 435.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03605/0.5963, allocations: 6.783 MB / 441.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004326/0.5968, allocations: 28.84 kB / 441.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006823/0.6036, allocations: 3.033 MB / 445 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6037, allocations: 0 / 445 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02645/0.6301, allocations: 5.983 MB / 450.9 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003311/0.6305, allocations: 156.6 kB / 451.1 MB, free: 1.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003689/0.6309, allocations: 21.56 kB / 451.1 MB, free: 1.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/0.6326, allocations: 171.7 kB / 451.3 MB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003706/0.633, allocations: 92.88 kB / 451.4 MB, free: 1.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.6332, allocations: 35.97 kB / 451.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004818/0.6336, allocations: 334.9 kB / 451.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6336, allocations: 0 / 451.7 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001031/0.6347, 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.02657/0.6613, allocations: 6.569 MB / 458.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007134/0.6685, allocations: 2.036 MB / 460.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.6685, allocations: 0 / 460.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00402/0.6726, 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.001294/0.6739, allocations: 135 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.06052/0.7344, allocations: 15.78 MB / 477.6 MB, free: 6.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006862/0.7352, allocations: 0.9311 MB / 478.5 MB, free: 5.805 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003796/0.7356, allocations: 54.08 kB / 478.6 MB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.736, allocations: 263.3 kB / 478.8 MB, free: 5.492 MB / 398.1 MB Notification: Performance of SimCode: time 9.01e-07/0.736, allocations: 0 / 478.8 MB, free: 5.492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07484/0.8109, allocations: 29.37 MB / 0.4963 GB, free: 8.039 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/15.36, allocations: 15.98 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