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.001288/0.001288, allocations: 119.6 kB / 20.43 MB, free: 1.297 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.00148/0.00148, allocations: 206.8 kB / 23.74 MB, free: 4.516 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 8 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 51.92 kB / 377.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2758, allocations: 53.36 MB / 431.2 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006725/0.2825, allocations: 4.993 MB / 436.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002749/0.2853, allocations: 1.291 MB / 437.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005839/0.2859, allocations: 15.94 kB / 437.5 MB, free: 500 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004227/0.2863, allocations: 126.7 kB / 437.6 MB, free: 372 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000738/0.287, allocations: 257.7 kB / 437.8 MB, free: 112 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000871/0.2879, allocations: 315.4 kB / 438.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001432/0.2893, allocations: 1.099 MB / 439.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003756/0.2897, allocations: 188.7 kB / 439.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006498/0.2904, allocations: 434.5 kB / 439.9 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007306/0.2911, allocations: 482 kB / 440.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001913/0.2913, allocations: 88 kB / 440.4 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002765/0.2916, allocations: 116 kB / 440.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001942/0.2918, allocations: 199.3 kB / 440.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00051/0.2923, allocations: 449.8 kB / 441.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001209/0.2935, allocations: 1.035 MB / 442.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2935, allocations: 8 kB / 442.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2935, allocations: 0 / 442.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.73e-05/0.2935, allocations: 0 / 442.2 MB, free: 11.72 MB / 350.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.002964/0.2965, allocations: 1.209 MB / 443.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2965, allocations: 8.031 kB / 443.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001583/0.2967, allocations: 114.6 kB / 443.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.2969, allocations: 96.33 kB / 443.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008321/0.2977, allocations: 426.2 kB / 444 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.2978, allocations: 49.67 kB / 444.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.2979, allocations: 76.25 kB / 444.2 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.2993, allocations: 0.6468 MB / 444.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.2993, allocations: 0 / 444.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.522e-05/0.2994, allocations: 32 kB / 444.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.2994, allocations: 12 kB / 444.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001718/0.3011, allocations: 0.7038 MB / 445.6 MB, free: 8.277 MB / 350.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.004294/0.3054, allocations: 2.304 MB / 447.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.3069, allocations: 0.5586 MB / 448.4 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007508/0.3077, allocations: 318.5 kB / 448.7 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.287e-05/0.3077, allocations: 12.42 kB / 448.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009968/0.3087, allocations: 437.3 kB / 449.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.705e-06/0.3087, allocations: 0 / 449.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.07223/0.381, allocations: 15.23 MB / 464.4 MB, free: 5.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.3811, allocations: 149.5 kB / 464.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007363/0.3818, allocations: 0.5147 MB / 465.1 MB, free: 4.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002138/0.382, allocations: 49.69 kB / 465.1 MB, free: 4.438 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.3824, allocations: 392.7 kB / 465.5 MB, free: 4.047 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004051/0.3828, allocations: 333.2 kB / 465.8 MB, free: 3.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004206/0.3832, allocations: 182.6 kB / 466 MB, free: 3.535 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.3834, allocations: 390.7 kB / 466.4 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.3855, allocations: 0.7244 MB / 467.1 MB, free: 2.418 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002314/0.3878, allocations: 0.9667 MB / 468.1 MB, free: 1.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004357/0.3922, allocations: 1.697 MB / 469.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.3922, allocations: 0 / 469.8 MB, free: 15.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02399/0.4162, allocations: 5.331 MB / 475.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-05/0.4163, allocations: 63.41 kB / 475.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.4163, allocations: 4 kB / 475.2 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03477/0.4511, allocations: 6.841 MB / 482 MB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007213/0.4518, allocations: 151.7 kB / 482.1 MB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006524/0.4583, allocations: 3.013 MB / 485.2 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.4601, allocations: 179.8 kB / 485.3 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/0.4603, allocations: 47.92 kB / 485.4 MB, free: 15.84 MB / 398.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.0005536/0.4608, allocations: 225.6 kB / 485.6 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.461, allocations: 83.48 kB / 485.7 MB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02319/0.4842, allocations: 5.064 MB / 490.7 MB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.4842, allocations: 12 kB / 490.8 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.4843, allocations: 4 kB / 490.8 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.282e-05/0.4843, allocations: 3.984 kB / 490.8 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001798/0.4861, allocations: 1.072 MB / 491.8 MB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.4861, allocations: 4.25 kB / 491.8 MB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005393/0.4866, allocations: 99.81 kB / 491.9 MB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03481/0.5214, allocations: 6.773 MB / 498.7 MB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002033/0.5216, allocations: 31.97 kB / 498.7 MB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006239/0.5279, allocations: 3.033 MB / 0.49 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.5279, allocations: 0 / 0.49 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02636/0.5542, allocations: 5.94 MB / 0.4958 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002309/0.5545, allocations: 79.39 kB / 0.4959 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002776/0.5548, allocations: 19.94 kB / 0.4959 GB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.5562, allocations: 175.8 kB / 0.4961 GB, free: 9.055 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.5565, allocations: 104.8 kB / 0.4962 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.74e-05/0.5566, allocations: 27.97 kB / 0.4962 GB, free: 8.926 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004729/0.5571, allocations: 358.8 kB / 0.4965 GB, free: 8.578 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5571, allocations: 0 / 0.4965 GB, free: 8.578 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009664/0.558, allocations: 259.9 kB / 0.4968 GB, free: 8.324 MB / 414.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.02638/0.5844, allocations: 6.527 MB / 0.5032 GB, free: 1.754 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006301/0.5907, allocations: 1.97 MB / 0.5051 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.5907, allocations: 4.188 kB / 0.5051 GB, free: 15.75 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003596/0.5943, allocations: 1.007 MB / 0.5061 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00084/0.5951, allocations: 138.4 kB / 0.5062 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05976/0.6549, allocations: 15.9 MB / 0.5217 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006084/0.6555, allocations: 0.9507 MB / 0.5227 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003069/0.6558, allocations: 54.28 kB / 0.5227 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004063/0.6562, allocations: 271.3 kB / 0.523 GB, free: 13.09 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6562, allocations: 0 / 0.523 GB, free: 13.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.261/0.9173, allocations: 31.21 MB / 0.5535 GB, free: 100.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.46/15.37, allocations: 17.55 kB / 0.5535 GB, free: 100.2 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.11942193703726]