Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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.0007977/0.0007977, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.003515/0.003515, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 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 0.804/0.804, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.749e-05/1.869e-05, allocations: 2.281 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003051/0.00307, allocations: 3.801 MB / 323.5 MB, free: 2.02 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.004356, allocations: 1.16 MB / 324.6 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.004528, allocations: 11.94 kB / 324.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001709/0.004699, allocations: 106.9 kB / 324.8 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.004912, allocations: 198.1 kB / 325 MB, free: 0.543 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.00535, allocations: 343.5 kB / 325.3 MB, free: 212 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006209/0.005971, allocations: 1.116 MB / 326.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.006202, allocations: 183 kB / 326.6 MB, free: 14.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003851/0.006587, allocations: 0.6044 MB / 327.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/0.006868, allocations: 351.1 kB / 327.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.376e-05/0.006962, allocations: 120 kB / 327.7 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.273e-05/0.007045, allocations: 123.9 kB / 327.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.007159, allocations: 227.3 kB / 328 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.007347, allocations: 315.2 kB / 328.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007599/0.008107, allocations: 1.301 MB / 329.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.008109, allocations: 0 / 329.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.008111, allocations: 0 / 329.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.385e-06/0.008119, allocations: 0 / 329.6 MB, free: 11.88 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.00152/0.009639, allocations: 1.205 MB / 330.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.009672, allocations: 8.922 kB / 330.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.009775, allocations: 88.42 kB / 330.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004406/0.01022, allocations: 415.4 kB / 331.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.01025, allocations: 41.69 kB / 331.4 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.994e-05/0.01032, allocations: 64.36 kB / 331.4 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.01158, allocations: 1.274 MB / 332.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.0116, allocations: 8.125 kB / 332.7 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.01164, allocations: 20.38 kB / 332.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.01165, allocations: 19.94 kB / 332.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001493/0.01315, allocations: 0.9991 MB / 333.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.01574, allocations: 2.823 MB / 336.6 MB, free: 4.602 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.01695, allocations: 0.7337 MB / 337.3 MB, free: 3.863 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006122/0.01756, allocations: 422 kB / 337.7 MB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.0176, allocations: 20.42 kB / 337.7 MB, free: 3.426 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006257/0.01822, allocations: 465.7 kB / 338.2 MB, free: 2.961 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.014e-06/0.01823, allocations: 4 kB / 338.2 MB, free: 2.957 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.001642/0.01987, allocations: 1.094 MB / 339.3 MB, free: 1.859 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.01999, allocations: 376.3 kB / 339.6 MB, free: 1.406 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.0204, allocations: 0.5416 MB / 340.2 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.912e-05/0.02044, allocations: 37.7 kB / 340.2 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001744/0.02062, allocations: 380.4 kB / 340.6 MB, free: 444 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.642e-05/0.02071, allocations: 174.5 kB / 340.8 MB, free: 268 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.02086, allocations: 138.6 kB / 340.9 MB, free: 124 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.02097, allocations: 370.8 kB / 341.3 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006442/0.02162, allocations: 461.1 kB / 341.7 MB, free: 15.29 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000821/0.02244, allocations: 1.036 MB / 342.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.02362, allocations: 0.9753 MB / 343.7 MB, free: 12.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.02363, allocations: 4 kB / 343.7 MB, free: 12.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001503/0.02513, allocations: 1.194 MB / 344.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.039e-05/0.02517, allocations: 71.33 kB / 345 MB, free: 11.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.02518, allocations: 8 kB / 345 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.0252, allocations: 8 kB / 345 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.02567, allocations: 219.9 kB / 345.2 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.02568, allocations: 19.92 kB / 345.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000464/0.02614, allocations: 171.4 kB / 345.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.02618, allocations: 35.98 kB / 345.4 MB, free: 11.2 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.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 (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001835/0.02636, allocations: 225.6 kB / 345.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.7e-05/0.02642, allocations: 67.58 kB / 345.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.395e-05/0.02651, allocations: 77.81 kB / 345.8 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.02651, allocations: 4 kB / 345.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.02652, allocations: 4 kB / 345.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.02652, allocations: 3.984 kB / 345.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.02822, allocations: 1.448 MB / 347.3 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.02822, allocations: 0 / 347.3 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003471/0.02857, allocations: 147.8 kB / 347.4 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.02857, allocations: 4 kB / 347.4 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.0286, allocations: 15.98 kB / 347.4 MB, free: 9.168 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.0286, allocations: 4 kB / 347.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.0286, allocations: 0 / 347.4 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.0303, allocations: 1.298 MB / 348.7 MB, free: 7.848 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.516e-05/0.03035, allocations: 71.47 kB / 348.8 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.247e-05/0.03041, allocations: 12 kB / 348.8 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003341/0.03074, allocations: 99.86 kB / 348.9 MB, free: 7.668 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/0.03083, allocations: 56.47 kB / 349 MB, free: 7.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.273e-05/0.03085, allocations: 16 kB / 349 MB, free: 7.598 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002922/0.03114, allocations: 366.8 kB / 349.3 MB, free: 7.242 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03114, allocations: 7.875 kB / 349.3 MB, free: 7.234 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.03148, allocations: 183.8 kB / 349.5 MB, free: 7.055 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001123/0.03159, allocations: 115.2 kB / 349.6 MB, free: 6.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.03291, allocations: 1.02 MB / 350.7 MB, free: 5.875 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.03291, allocations: 0 / 350.7 MB, free: 5.875 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005546/0.03347, allocations: 395.7 kB / 351 MB, free: 5.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003441/0.03381, allocations: 98.16 kB / 351.1 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.03521, allocations: 1.237 MB / 352.4 MB, free: 4.121 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.03536, allocations: 276.4 kB / 352.6 MB, free: 3.824 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.03555, allocations: 64.48 kB / 352.7 MB, free: 3.762 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.03555, allocations: 0 / 352.7 MB, free: 3.762 MB / 314.7 MB Notification: Performance of Templates: time 0.007123/0.04267, allocations: 9.343 MB / 362.1 MB, free: 10.44 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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: 4.411327319219708]