Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.001524/0.001524, allocations: 112.5 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.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.001692/0.001692, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002051/0.002051, allocations: 47.94 kB / 378.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.2761, allocations: 53.35 MB / 431.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006207/0.2823, allocations: 5.003 MB / 437 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.2847, allocations: 1.303 MB / 438.3 MB, free: 496 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002593/0.2849, allocations: 15.94 kB / 438.3 MB, free: 480 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002775/0.2852, allocations: 126.7 kB / 438.4 MB, free: 352 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004368/0.2856, allocations: 261.7 kB / 438.6 MB, free: 88 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006313/0.2863, allocations: 307.5 kB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001104/0.2874, allocations: 1.099 MB / 440 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003434/0.2877, allocations: 187 kB / 440.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005174/0.2882, allocations: 430.5 kB / 440.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006064/0.2888, allocations: 482 kB / 441.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001225/0.289, allocations: 92 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000214/0.2892, allocations: 112 kB / 441.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.2894, allocations: 203.3 kB / 441.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004359/0.2898, allocations: 461.8 kB / 442 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.2909, allocations: 1.032 MB / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2909, allocations: 0 / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2909, allocations: 0 / 443 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.291, allocations: 0 / 443 MB, free: 11.71 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.002464/0.2934, allocations: 1.206 MB / 444.2 MB, free: 10.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.2935, allocations: 16.02 kB / 444.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.207e-05/0.2935, allocations: 17.5 kB / 444.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001249/0.2936, allocations: 102.7 kB / 444.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.2938, allocations: 104.3 kB / 444.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007459/0.2945, allocations: 426 kB / 444.9 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.24e-05/0.2946, allocations: 45.69 kB / 444.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.2947, allocations: 68.33 kB / 445 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001388/0.2961, allocations: 0.6584 MB / 445.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.2961, allocations: 0 / 445.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.521e-05/0.2962, allocations: 31.94 kB / 445.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.649e-05/0.2962, allocations: 16 kB / 445.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.2979, allocations: 0.6999 MB / 446.4 MB, free: 8.246 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.003904/0.3018, allocations: 2.308 MB / 448.7 MB, free: 5.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.3033, allocations: 0.5599 MB / 449.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007672/0.3041, allocations: 317.8 kB / 449.6 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.743e-05/0.3041, allocations: 8.422 kB / 449.6 MB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.3051, allocations: 429.4 kB / 450 MB, free: 4.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.973e-06/0.3051, allocations: 0 / 450 MB, free: 4.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=94): time 0.0679/0.373, allocations: 15.25 MB / 465.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.3731, allocations: 137.5 kB / 465.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000697/0.3738, allocations: 0.5225 MB / 465.9 MB, free: 4.449 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001758/0.374, allocations: 45.7 kB / 465.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.3743, allocations: 392.7 kB / 466.3 MB, free: 4.008 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003376/0.3747, allocations: 333.2 kB / 466.6 MB, free: 3.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003957/0.3751, allocations: 182.6 kB / 466.8 MB, free: 3.496 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.3753, allocations: 390.7 kB / 467.2 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/0.3774, allocations: 0.7321 MB / 467.9 MB, free: 2.375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002256/0.3796, allocations: 0.9512 MB / 468.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004188/0.3838, allocations: 1.693 MB / 470.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.3838, allocations: 4 kB / 470.6 MB, free: 15.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.023/0.4068, allocations: 5.339 MB / 475.9 MB, free: 10.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.948e-05/0.4069, allocations: 59.41 kB / 476 MB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.4069, allocations: 11.98 kB / 476 MB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03334/0.4403, allocations: 6.852 MB / 482.8 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000729/0.441, allocations: 147.7 kB / 483 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006987/0.448, allocations: 3.161 MB / 486.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.4495, allocations: 187.8 kB / 486.3 MB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.4496, allocations: 47.97 kB / 486.4 MB, free: 15.62 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.0004771/0.4501, allocations: 225.7 kB / 486.6 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.4503, allocations: 87.42 kB / 486.7 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02206/0.4723, allocations: 5.068 MB / 491.7 MB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.4724, allocations: 8 kB / 491.8 MB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.4724, allocations: 0 / 491.8 MB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.4724, allocations: 7.984 kB / 491.8 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001554/0.4739, allocations: 1.072 MB / 492.8 MB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4739, allocations: 0 / 492.8 MB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005379/0.4745, allocations: 87.88 kB / 492.9 MB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03321/0.5077, allocations: 6.801 MB / 499.7 MB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001991/0.5079, allocations: 19.98 kB / 499.7 MB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006173/0.5141, allocations: 3.053 MB / 0.491 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.5141, allocations: 0 / 0.491 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02377/0.5378, allocations: 5.948 MB / 0.4968 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.538, allocations: 79.52 kB / 0.4969 GB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001603/0.5382, allocations: 24.12 kB / 0.4969 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5395, allocations: 171.8 kB / 0.4971 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002538/0.5398, allocations: 96.83 kB / 0.4972 GB, free: 8.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.262e-05/0.5399, allocations: 35.97 kB / 0.4972 GB, free: 8.691 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004388/0.5403, allocations: 354.8 kB / 0.4975 GB, free: 8.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5403, allocations: 0 / 0.4975 GB, free: 8.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007336/0.541, allocations: 259.9 kB / 0.4978 GB, free: 8.094 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.02422/0.5652, allocations: 6.532 MB / 0.5042 GB, free: 1.516 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00671/0.572, allocations: 2.098 MB / 0.5062 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.572, allocations: 5.312 kB / 0.5062 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003392/0.5754, allocations: 1.011 MB / 0.5072 GB, free: 14.38 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.5761, allocations: 130.2 kB / 0.5073 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05387/0.63, allocations: 15.89 MB / 0.5229 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005834/0.6306, allocations: 0.9468 MB / 0.5238 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003142/0.6309, allocations: 62.2 kB / 0.5238 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003724/0.6313, allocations: 275.3 kB / 0.5241 GB, free: 12.72 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.6313, allocations: 4 kB / 0.5241 GB, free: 12.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2436/0.8749, allocations: 30.98 MB / 0.5544 GB, free: 100 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.65, allocations: 2.406 kB / 0.5544 GB, free: 100 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate_fmu --startTime=0 --stopTime=200 --stepSize=0.0396747 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_HeatingNPN_NORGate.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.53623772598803]