Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001456/0.001456, allocations: 217.1 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 59.89 kB / 377.8 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2512, allocations: 53.41 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006416/0.2576, allocations: 5.009 MB / 436.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.2605, allocations: 1.295 MB / 437.5 MB, free: 368 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005101/0.261, allocations: 19.88 kB / 437.5 MB, free: 348 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003598/0.2613, allocations: 118.7 kB / 437.6 MB, free: 228 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006025/0.2619, allocations: 265.7 kB / 437.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007616/0.2627, allocations: 307.4 kB / 438.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00121/0.2639, allocations: 1.095 MB / 439.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.2642, allocations: 191 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005286/0.2648, allocations: 430.6 kB / 439.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006203/0.2654, allocations: 478 kB / 440.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001292/0.2655, allocations: 88 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.2657, allocations: 116 kB / 440.6 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001846/0.2659, allocations: 207.2 kB / 440.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004647/0.2664, allocations: 457.8 kB / 441.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.2675, allocations: 1.039 MB / 442.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.2675, allocations: 0 / 442.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2675, allocations: 0 / 442.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.2676, allocations: 0 / 442.3 MB, free: 11.58 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.002511/0.2701, allocations: 1.206 MB / 443.5 MB, free: 10.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/0.2701, allocations: 12.02 kB / 443.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001319/0.2703, allocations: 102.7 kB / 443.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.2704, allocations: 100.3 kB / 443.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007358/0.2712, allocations: 430.1 kB / 444.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.048e-05/0.2712, allocations: 49.69 kB / 444.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.2713, allocations: 68.33 kB / 444.2 MB, free: 9.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.2727, allocations: 0.6546 MB / 444.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.2727, allocations: 0 / 444.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.059e-05/0.2728, allocations: 24 kB / 444.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.2728, allocations: 19.94 kB / 444.9 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001657/0.2744, allocations: 0.6999 MB / 445.6 MB, free: 8.141 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.004125/0.2786, allocations: 2.312 MB / 447.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001394/0.2799, allocations: 0.5616 MB / 448.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007083/0.2807, allocations: 310.6 kB / 448.8 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.2807, allocations: 4.438 kB / 448.8 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009152/0.2816, allocations: 433.4 kB / 449.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 2.114e-06/0.2816, allocations: 0 / 449.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.06977/0.3514, allocations: 15.24 MB / 464.5 MB, free: 5.051 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3515, allocations: 145.5 kB / 464.6 MB, free: 4.875 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006722/0.3522, allocations: 0.5224 MB / 465.1 MB, free: 4.344 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.3523, allocations: 45.7 kB / 465.2 MB, free: 4.293 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003208/0.3527, allocations: 388.7 kB / 465.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003197/0.353, allocations: 333.2 kB / 465.9 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003533/0.3533, allocations: 182.6 kB / 466 MB, free: 3.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.3536, allocations: 394.7 kB / 466.4 MB, free: 3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.3556, allocations: 0.7244 MB / 467.2 MB, free: 2.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00215/0.3577, allocations: 0.9558 MB / 468.1 MB, free: 1.234 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004076/0.3618, allocations: 1.693 MB / 469.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/0.3618, allocations: 0 / 469.8 MB, free: 15.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02322/0.385, allocations: 5.347 MB / 475.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.782e-05/0.3851, allocations: 63.41 kB / 475.2 MB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.3851, allocations: 4 kB / 475.2 MB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03493/0.4201, allocations: 6.844 MB / 482.1 MB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00071/0.4208, allocations: 155.7 kB / 482.2 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007091/0.4279, allocations: 3.157 MB / 485.4 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/0.4294, allocations: 183.8 kB / 485.6 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.4296, allocations: 47.92 kB / 485.6 MB, free: 15.54 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.0004336/0.43, allocations: 237.7 kB / 485.8 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.4302, allocations: 83.48 kB / 485.9 MB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02251/0.4527, allocations: 5.068 MB / 491 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.4527, allocations: 8 kB / 491 MB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.4527, allocations: 4 kB / 491 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.117e-05/0.4527, allocations: 7.984 kB / 491 MB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001658/0.4544, allocations: 1.072 MB / 492.1 MB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4544, allocations: 0 / 492.1 MB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005311/0.4549, allocations: 95.88 kB / 492.2 MB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03508/0.49, allocations: 6.793 MB / 499 MB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001996/0.4902, allocations: 28.22 kB / 499 MB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006105/0.4963, allocations: 3.052 MB / 0.4903 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4963, allocations: 0 / 0.4903 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02498/0.5213, allocations: 5.944 MB / 0.4961 GB, free: 8.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002316/0.5215, allocations: 83.45 kB / 0.4962 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001847/0.5217, allocations: 16 kB / 0.4962 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.5231, allocations: 171.8 kB / 0.4963 GB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002697/0.5233, allocations: 96.83 kB / 0.4964 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.154e-05/0.5234, allocations: 31.97 kB / 0.4965 GB, free: 8.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004842/0.5239, allocations: 358.8 kB / 0.4968 GB, free: 8.238 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5239, allocations: 0 / 0.4968 GB, free: 8.238 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008019/0.5247, allocations: 259.9 kB / 0.497 GB, free: 7.984 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.02552/0.5502, allocations: 6.532 MB / 0.5034 GB, free: 1.406 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006757/0.557, allocations: 2.09 MB / 0.5055 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.557, allocations: 1.375 kB / 0.5055 GB, free: 15.29 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003473/0.5605, allocations: 1.022 MB / 0.5065 GB, free: 14.27 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008237/0.5613, allocations: 145.1 kB / 0.5066 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05688/0.6182, allocations: 15.88 MB / 0.5221 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00077/0.6189, allocations: 0.9507 MB / 0.523 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003645/0.6193, allocations: 54.27 kB / 0.5231 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004677/0.6198, allocations: 279.3 kB / 0.5234 GB, free: 12.62 MB / 446.1 MB Notification: Performance of SimCode: time 2.094e-06/0.6198, allocations: 0 / 0.5234 GB, free: 12.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2647/0.8845, allocations: 30.95 MB / 0.5536 GB, free: 99.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/14.83, allocations: 2.578 kB / 0.5536 GB, free: 99.84 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.457763330778107]