Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 120.1 kB / 18.49 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 215 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.428/1.428, allocations: 230.6 MB / 254.8 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 51.92 kB / 373.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1056, allocations: 53.33 MB / 427 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006424/0.112, allocations: 4.971 MB / 432 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002176/0.1142, allocations: 1.291 MB / 433.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.1145, allocations: 19.88 kB / 433.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.1148, allocations: 122.7 kB / 433.4 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004385/0.1152, allocations: 261.7 kB / 433.7 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006499/0.1158, allocations: 311.4 kB / 434 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001091/0.1169, allocations: 1.103 MB / 435.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003195/0.1173, allocations: 182.5 kB / 435.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000469/0.1177, allocations: 434.6 kB / 435.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005531/0.1183, allocations: 478 kB / 436.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.1184, allocations: 88 kB / 436.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.1186, allocations: 116 kB / 436.4 MB, free: 11.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.1188, allocations: 199.3 kB / 436.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004341/0.1192, allocations: 457.8 kB / 437 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1203, allocations: 1.027 MB / 438 MB, free: 9.746 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1203, allocations: 4 kB / 438 MB, free: 9.742 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1203, allocations: 4 kB / 438.1 MB, free: 9.738 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.1203, allocations: 0 / 438.1 MB, free: 9.738 MB / 366.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.002633/0.1229, allocations: 1.289 MB / 439.3 MB, free: 8.383 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.123, allocations: 8.031 kB / 439.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.773e-05/0.123, allocations: 17.5 kB / 439.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001326/0.1231, allocations: 106.7 kB / 439.5 MB, free: 8.242 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.1233, allocations: 100.3 kB / 439.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007233/0.124, allocations: 487.9 kB / 440 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.305e-05/0.1241, allocations: 45.69 kB / 440.1 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.1242, allocations: 72.31 kB / 440.2 MB, free: 7.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001417/0.1256, allocations: 0.6544 MB / 440.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1256, allocations: 4 kB / 440.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.1257, allocations: 28 kB / 440.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.1257, allocations: 16 kB / 440.9 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.1275, allocations: 0.7 MB / 441.6 MB, free: 6.105 MB / 366.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.00393/0.1314, allocations: 2.375 MB / 443.9 MB, free: 3.582 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0015/0.1329, allocations: 0.5631 MB / 444.5 MB, free: 3.008 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/0.1337, allocations: 310 kB / 444.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.732e-05/0.1337, allocations: 8.422 kB / 444.8 MB, free: 2.695 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009772/0.1347, allocations: 433.4 kB / 445.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=54): time 1.994e-06/0.1347, allocations: 0 / 445.2 MB, free: 2.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.2423/0.377, allocations: 15.37 MB / 460.6 MB, free: 22.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.802e-05/0.377, allocations: 145 kB / 460.7 MB, free: 22.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006754/0.3777, allocations: 0.526 MB / 461.3 MB, free: 22.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001633/0.3779, allocations: 43.11 kB / 461.3 MB, free: 22.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002006/0.3781, allocations: 394.5 kB / 461.7 MB, free: 22.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002396/0.3783, allocations: 331.5 kB / 462 MB, free: 21.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00035/0.3787, allocations: 183.8 kB / 462.2 MB, free: 21.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.3788, allocations: 384.9 kB / 462.6 MB, free: 21.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/0.3807, allocations: 0.7193 MB / 463.3 MB, free: 21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/0.3826, allocations: 0.9587 MB / 464.3 MB, free: 20.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003678/0.3863, allocations: 1.694 MB / 466 MB, free: 19.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3863, allocations: 2.406 kB / 466 MB, free: 19.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02106/0.4074, allocations: 5.335 MB / 471.3 MB, free: 16.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.771e-05/0.4074, allocations: 63.66 kB / 471.4 MB, free: 16.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.4074, allocations: 6.906 kB / 471.4 MB, free: 16.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03012/0.4376, allocations: 6.838 MB / 478.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006551/0.4382, allocations: 139.8 kB / 478.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004862/0.4431, allocations: 3.013 MB / 481.3 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.4446, allocations: 179.8 kB / 481.5 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.171e-05/0.4447, allocations: 51.97 kB / 481.6 MB, free: 9.727 MB / 366.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.0003545/0.445, allocations: 225.2 kB / 481.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.4452, allocations: 87.42 kB / 481.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01924/0.4644, allocations: 5.065 MB / 486.9 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.4644, allocations: 12 kB / 487 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4644, allocations: 0.625 kB / 487 MB, free: 4.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.87e-05/0.4645, allocations: 3.984 kB / 487 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.4657, allocations: 1.106 MB / 488.1 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4657, allocations: 0 / 488.1 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004911/0.4662, allocations: 101.2 kB / 488.2 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03102/0.4972, allocations: 6.78 MB / 494.9 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002084/0.4974, allocations: 31.91 kB / 495 MB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005958/0.5034, allocations: 3.022 MB / 498 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5034, allocations: 1.094 kB / 498 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02372/0.5271, allocations: 5.952 MB / 0.4921 GB, free: 3.234 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.5274, allocations: 148.6 kB / 0.4923 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.5275, allocations: 16.55 kB / 0.4923 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5288, allocations: 174 kB / 0.4925 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002841/0.5291, allocations: 100.8 kB / 0.4926 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.975e-05/0.5292, allocations: 27.98 kB / 0.4926 GB, free: 2.762 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004528/0.5297, allocations: 358.8 kB / 0.4929 GB, free: 2.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5297, allocations: 7.609 kB / 0.4929 GB, free: 2.406 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008165/0.5305, allocations: 256 kB / 0.4932 GB, free: 2.156 MB / 382.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.02484/0.5553, allocations: 6.526 MB / 0.4996 GB, free: 11.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006256/0.5616, allocations: 1.967 MB / 0.5015 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.5616, allocations: 0 / 0.5015 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003512/0.5651, allocations: 1.012 MB / 0.5025 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008343/0.5659, allocations: 135.6 kB / 0.5026 GB, free: 8.488 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05423/0.6202, allocations: 15.9 MB / 0.5181 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/0.6208, allocations: 0.9507 MB / 0.519 GB, free: 7.316 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000358/0.6212, allocations: 55.83 kB / 0.5191 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003913/0.6215, allocations: 279.3 kB / 0.5194 GB, free: 6.988 MB / 414.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6215, allocations: 0 / 0.5194 GB, free: 6.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06083/0.6824, allocations: 30 MB / 0.5487 GB, free: 9.312 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.83, allocations: 4 kB / 0.5487 GB, free: 9.309 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.84639648202574]