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.001531/0.001531, allocations: 99.28 kB / 17.58 MB, free: 5.562 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.001443/0.001443, allocations: 192.2 kB / 18.51 MB, free: 4.637 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.385/1.385, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001167/0.001168, allocations: 51.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09168/0.09286, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00552/0.09842, allocations: 4.696 MB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002354/0.1008, allocations: 1.261 MB / 333.3 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003368/0.1012, allocations: 15.94 kB / 333.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.1015, allocations: 118.7 kB / 333.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004177/0.1019, allocations: 237.8 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006578/0.1026, allocations: 299.5 kB / 334 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008572/0.1035, allocations: 1.048 MB / 335 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003577/0.1038, allocations: 266.4 kB / 335.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000392/0.1042, allocations: 406.6 kB / 335.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004511/0.1047, allocations: 450.1 kB / 336.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001109/0.1048, allocations: 84 kB / 336.2 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002022/0.105, allocations: 112 kB / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.1052, allocations: 187.3 kB / 336.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.1055, allocations: 433.8 kB / 336.9 MB, free: 10.75 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008073/0.1064, allocations: 0.9618 MB / 337.9 MB, free: 9.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1064, allocations: 0 / 337.9 MB, free: 9.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1064, allocations: 0 / 337.9 MB, free: 9.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.1064, allocations: 4 kB / 337.9 MB, free: 9.777 MB / 286.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.002328/0.1087, allocations: 1.207 MB / 339.1 MB, free: 8.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1088, allocations: 12.03 kB / 339.1 MB, free: 8.488 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.1089, allocations: 102.7 kB / 339.2 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.1091, allocations: 87.91 kB / 339.3 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005237/0.1096, allocations: 465.4 kB / 339.8 MB, free: 7.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.1096, allocations: 45.69 kB / 339.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.45e-05/0.1097, allocations: 60.38 kB / 339.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001331/0.1111, allocations: 0.639 MB / 340.5 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.1111, allocations: 0 / 340.5 MB, free: 7.051 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.1112, allocations: 31.98 kB / 340.5 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.1112, allocations: 12 kB / 340.6 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.1129, allocations: 0.6843 MB / 341.2 MB, free: 6.32 MB / 286.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.003567/0.1164, allocations: 2.331 MB / 343.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.1179, allocations: 0.5827 MB / 344.1 MB, free: 3.246 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000727/0.1186, allocations: 341.9 kB / 344.5 MB, free: 2.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.1187, allocations: 12.41 kB / 344.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001012/0.1197, allocations: 429.4 kB / 344.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.595e-06/0.1197, allocations: 0 / 344.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06895/0.1887, allocations: 15.39 MB / 360.3 MB, free: 2.969 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.1888, allocations: 145.5 kB / 360.4 MB, free: 2.793 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006758/0.1895, allocations: 494.8 kB / 360.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.1897, allocations: 45.69 kB / 361 MB, free: 2.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002901/0.19, allocations: 363.9 kB / 361.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003461/0.1904, allocations: 307.5 kB / 361.6 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000421/0.1908, allocations: 182.5 kB / 361.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.191, allocations: 382.8 kB / 362.2 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.1931, allocations: 0.7241 MB / 362.9 MB, free: 300 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002174/0.1953, allocations: 0.9303 MB / 363.8 MB, free: 15.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004208/0.1995, allocations: 1.658 MB / 365.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.567e-06/0.1996, allocations: 0 / 365.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02325/0.2228, allocations: 5.347 MB / 370.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.67e-05/0.223, allocations: 63.41 kB / 370.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.223, allocations: 11.98 kB / 370.9 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03333/0.2563, allocations: 6.84 MB / 377.8 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007085/0.2571, allocations: 135.8 kB / 377.9 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.172/0.4292, allocations: 3.005 MB / 380.9 MB, free: 52.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002041/0.4312, allocations: 184.3 kB / 381.1 MB, free: 52.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/0.4315, allocations: 43.55 kB / 381.1 MB, free: 52.5 MB / 318.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.0006291/0.4322, allocations: 221.1 kB / 381.3 MB, free: 52.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003235/0.4325, allocations: 75.03 kB / 381.4 MB, free: 52.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02397/0.4565, allocations: 5.103 MB / 386.5 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.303e-05/0.4566, allocations: 10.19 kB / 386.5 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-05/0.4566, allocations: 2.625 kB / 386.5 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.39e-05/0.4567, allocations: 5.312 kB / 386.5 MB, free: 51.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002249/0.4589, allocations: 1.09 MB / 387.6 MB, free: 51.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.459, allocations: 3.969 kB / 387.6 MB, free: 51.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006156/0.4596, allocations: 93.88 kB / 387.7 MB, free: 51.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03252/0.4921, allocations: 6.794 MB / 394.5 MB, free: 49.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002596/0.4924, allocations: 27.81 kB / 394.5 MB, free: 49.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005297/0.4977, allocations: 3.029 MB / 397.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4978, allocations: 0 / 397.6 MB, free: 47.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02262/0.5204, allocations: 5.972 MB / 403.5 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002299/0.5207, allocations: 153.4 kB / 403.7 MB, free: 41.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000273/0.521, allocations: 16 kB / 403.7 MB, free: 41.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00142/0.5224, allocations: 167.9 kB / 403.9 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002654/0.5227, allocations: 100.9 kB / 404 MB, free: 41.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.5228, allocations: 27.98 kB / 404 MB, free: 41.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003557/0.5232, allocations: 346.8 kB / 404.3 MB, free: 41.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5232, allocations: 0 / 404.3 MB, free: 41.33 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000808/0.524, allocations: 257.1 kB / 404.6 MB, free: 41.08 MB / 318.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.02293/0.5469, allocations: 6.563 MB / 411.1 MB, free: 34.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006187/0.5532, allocations: 2.046 MB / 413.2 MB, free: 32.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/0.5532, allocations: 5.125 kB / 413.2 MB, free: 32.42 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003399/0.5567, allocations: 1.084 MB / 414.3 MB, free: 31.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.5577, allocations: 140.6 kB / 414.4 MB, free: 31.22 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05121/0.609, allocations: 15.96 MB / 430.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.6095, allocations: 0.935 MB / 431.3 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004388/0.61, allocations: 56.09 kB / 431.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003697/0.6103, allocations: 259.3 kB / 431.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of SimCode: time 1.392e-06/0.6104, allocations: 0 / 431.6 MB, free: 13.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06131/0.6717, allocations: 29.05 MB / 460.7 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.09, allocations: 3.938 kB / 460.7 MB, free: 0.6172 MB / 334.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