Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2635, allocations: 52.18 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006712/0.2702, allocations: 4.994 MB / 428.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.2731, allocations: 1.276 MB / 429.7 MB, free: 8.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.2734, allocations: 15.94 kB / 429.7 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.2738, allocations: 126.7 kB / 429.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004855/0.2743, allocations: 265.6 kB / 430.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000701/0.275, allocations: 307.5 kB / 430.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001136/0.2761, allocations: 1.103 MB / 431.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003364/0.2764, allocations: 187 kB / 431.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005501/0.277, allocations: 430.5 kB / 432.1 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006003/0.2776, allocations: 478.1 kB / 432.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.2777, allocations: 92 kB / 432.7 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002081/0.2779, allocations: 112 kB / 432.8 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001792/0.2781, allocations: 203.3 kB / 433 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004207/0.2785, allocations: 457.8 kB / 433.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001112/0.2796, allocations: 1.036 MB / 434.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2796, allocations: 0 / 434.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2796, allocations: 3.938 kB / 434.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.2797, allocations: 0 / 434.5 MB, free: 3.547 MB / 334.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.002517/0.2822, allocations: 1.202 MB / 435.7 MB, free: 2.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.2822, allocations: 12.03 kB / 435.7 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.876e-05/0.2822, allocations: 17.5 kB / 435.7 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.2824, allocations: 114.7 kB / 435.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.2825, allocations: 96.31 kB / 435.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006769/0.2832, allocations: 430.1 kB / 436.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.079e-05/0.2832, allocations: 45.69 kB / 436.4 MB, free: 1.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.2833, allocations: 64.38 kB / 436.4 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.2848, allocations: 0.6622 MB / 437.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.2848, allocations: 0 / 437.1 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-05/0.2849, allocations: 28 kB / 437.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.2849, allocations: 12 kB / 437.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.2866, allocations: 0.6922 MB / 437.8 MB, free: 96 kB / 334.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.004025/0.2906, allocations: 2.331 MB / 440.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.2921, allocations: 0.5515 MB / 440.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007474/0.2928, allocations: 310 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.2928, allocations: 4.438 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009799/0.2938, allocations: 429.4 kB / 441.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.364e-06/0.2938, allocations: 0 / 441.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06943/0.3633, allocations: 15.25 MB / 456.7 MB, free: 13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.3634, allocations: 141.5 kB / 456.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007294/0.3641, allocations: 0.5186 MB / 457.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002033/0.3643, allocations: 49.7 kB / 457.4 MB, free: 12.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003217/0.3646, allocations: 388.6 kB / 457.8 MB, free: 11.85 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/0.365, allocations: 333.2 kB / 458.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004037/0.3654, allocations: 182.6 kB / 458.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.3656, allocations: 394.7 kB / 458.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.3677, allocations: 0.7205 MB / 459.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002285/0.3699, allocations: 0.9551 MB / 460.3 MB, free: 9.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004296/0.3742, allocations: 1.689 MB / 462 MB, free: 7.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3742, allocations: 4 kB / 462 MB, free: 7.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02306/0.3973, allocations: 5.332 MB / 467.3 MB, free: 2.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.3974, allocations: 70.67 kB / 467.4 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.3974, allocations: 4 kB / 467.4 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0343/0.4317, allocations: 6.853 MB / 474.3 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/0.4325, allocations: 143.8 kB / 474.4 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007408/0.4399, allocations: 3.176 MB / 477.6 MB, free: 7.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/0.4416, allocations: 179.8 kB / 477.8 MB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001326/0.4417, allocations: 51.97 kB / 477.8 MB, free: 7.484 MB / 382.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.0004698/0.4422, allocations: 221.7 kB / 478 MB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.4424, allocations: 87.42 kB / 478.1 MB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02188/0.4643, allocations: 5.052 MB / 483.2 MB, free: 2.098 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/0.4643, allocations: 8 kB / 483.2 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.4643, allocations: 0 / 483.2 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.47e-05/0.4643, allocations: 7.984 kB / 483.2 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.466, allocations: 1.08 MB / 484.3 MB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.466, allocations: 4 kB / 484.3 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000536/0.4666, allocations: 103.8 kB / 484.4 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03344/0.5, allocations: 6.793 MB / 491.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.5002, allocations: 27.98 kB / 491.2 MB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006179/0.5064, allocations: 3.044 MB / 494.2 MB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.5064, allocations: 4 kB / 494.2 MB, free: 6.914 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02423/0.5306, allocations: 5.944 MB / 0.4885 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002235/0.5309, allocations: 71.5 kB / 0.4885 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.531, allocations: 20.06 kB / 0.4885 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001392/0.5324, allocations: 171.8 kB / 0.4887 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003074/0.5327, allocations: 100.8 kB / 0.4888 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.903e-05/0.5328, allocations: 31.98 kB / 0.4888 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005155/0.5333, allocations: 354.8 kB / 0.4892 GB, free: 212 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5333, allocations: 0 / 0.4892 GB, free: 212 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008509/0.5342, allocations: 264 kB / 0.4894 GB, free: 15.95 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.02452/0.5587, allocations: 6.538 MB / 0.4958 GB, free: 9.367 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006843/0.5656, allocations: 2.098 MB / 0.4979 GB, free: 7.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.5656, allocations: 4 kB / 0.4979 GB, free: 7.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/0.569, allocations: 1.016 MB / 0.4989 GB, free: 6.227 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007624/0.5697, allocations: 130.4 kB / 0.499 GB, free: 6.098 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05376/0.6235, allocations: 15.88 MB / 0.5145 GB, free: 5.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005593/0.6241, allocations: 0.9468 MB / 0.5154 GB, free: 4.914 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003086/0.6244, allocations: 62.25 kB / 0.5155 GB, free: 4.852 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003676/0.6247, allocations: 275.3 kB / 0.5157 GB, free: 4.582 MB / 430.1 MB Notification: Performance of SimCode: time 1.312e-06/0.6247, allocations: 7.938 kB / 0.5157 GB, free: 4.574 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2392/0.8639, allocations: 30.93 MB / 0.5459 GB, free: 114.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.57, allocations: 10.14 kB / 0.546 GB, free: 114.8 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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: 17.5386313960189]