Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.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.0009876/0.0009876, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.005474/0.005474, allocations: 160.9 kB / 24.7 MB, free: 9.426 MB / 18.57 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 0.8576/0.8576, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.214e-05/2.366e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003273/0.003297, allocations: 3.843 MB / 329.7 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.004649, allocations: 1.191 MB / 330.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.004846, allocations: 11.94 kB / 330.9 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.005037, allocations: 106.9 kB / 331 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.005271, allocations: 198.1 kB / 331.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004723/0.005744, allocations: 339.5 kB / 331.5 MB, free: 9.719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000946/0.006689, allocations: 1.12 MB / 332.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.006933, allocations: 179.1 kB / 332.8 MB, free: 8.414 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.00734, allocations: 0.6005 MB / 333.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.00763, allocations: 351.1 kB / 333.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.282e-05/0.007722, allocations: 120 kB / 333.9 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.405e-05/0.007807, allocations: 120 kB / 334 MB, free: 7.234 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.007915, allocations: 227.3 kB / 334.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.008104, allocations: 315.3 kB / 334.5 MB, free: 6.703 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008343/0.008939, allocations: 1.301 MB / 335.8 MB, free: 5.398 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.008941, allocations: 0 / 335.8 MB, free: 5.398 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.008943, allocations: 4 kB / 335.8 MB, free: 5.395 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.008952, allocations: 0 / 335.8 MB, free: 5.395 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.00157/0.01052, allocations: 1.198 MB / 337 MB, free: 4.152 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.01056, allocations: 8.031 kB / 337 MB, free: 4.145 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.01067, allocations: 92.41 kB / 337.1 MB, free: 4.055 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.01114, allocations: 431.3 kB / 337.5 MB, free: 3.605 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.01117, allocations: 45.69 kB / 337.6 MB, free: 3.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.01e-05/0.01124, allocations: 56.38 kB / 337.6 MB, free: 3.508 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.01276, allocations: 1.27 MB / 338.9 MB, free: 2.102 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.408e-05/0.01277, allocations: 192 / 338.9 MB, free: 2.102 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.897e-05/0.01282, allocations: 32.38 kB / 338.9 MB, free: 2.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.01283, allocations: 15.94 kB / 339 MB, free: 2.055 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.01431, allocations: 0.999 MB / 340 MB, free: 1.051 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002526/0.01683, allocations: 2.823 MB / 342.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001197/0.01803, allocations: 0.7346 MB / 343.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006241/0.01865, allocations: 429.2 kB / 343.9 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.01869, allocations: 12.5 kB / 343.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006393/0.01933, allocations: 466.8 kB / 344.4 MB, free: 12.48 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.653e-06/0.01933, allocations: 3.938 kB / 344.4 MB, free: 12.47 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001656/0.02098, allocations: 1.105 MB / 345.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003846/0.02137, allocations: 368.3 kB / 345.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004199/0.02179, allocations: 0.5416 MB / 346.4 MB, free: 10.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.02183, allocations: 41.7 kB / 346.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.022, allocations: 372.3 kB / 346.8 MB, free: 9.945 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001016/0.0221, allocations: 174.5 kB / 347 MB, free: 9.773 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/0.02224, allocations: 146.6 kB / 347.1 MB, free: 9.625 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.02234, allocations: 370.8 kB / 347.5 MB, free: 9.254 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000627/0.02297, allocations: 465.1 kB / 347.9 MB, free: 8.785 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008371/0.02381, allocations: 1.036 MB / 349 MB, free: 7.535 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.02504, allocations: 0.9676 MB / 349.9 MB, free: 6.469 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.02504, allocations: 4 kB / 349.9 MB, free: 6.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001515/0.02656, allocations: 1.194 MB / 351.1 MB, free: 5.234 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/0.0266, allocations: 71.33 kB / 351.2 MB, free: 5.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.02661, allocations: 8 kB / 351.2 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.02663, allocations: 8.281 kB / 351.2 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004776/0.02711, allocations: 219.7 kB / 351.4 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.02712, allocations: 11.94 kB / 351.5 MB, free: 4.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004915/0.02761, allocations: 191.3 kB / 351.6 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.02766, allocations: 31.98 kB / 351.7 MB, free: 4.691 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.0001944/0.02785, allocations: 229.6 kB / 351.9 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.02791, allocations: 63.62 kB / 352 MB, free: 4.395 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.404e-05/0.028, allocations: 73.88 kB / 352 MB, free: 4.32 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.028, allocations: 4 kB / 352 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.02801, allocations: 0 / 352 MB, free: 4.316 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.02802, allocations: 3.984 kB / 352 MB, free: 4.312 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002062/0.03008, allocations: 1.452 MB / 353.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.03008, allocations: 0 / 353.5 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.03045, allocations: 151.8 kB / 353.6 MB, free: 2.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.768e-06/0.03045, allocations: 0 / 353.6 MB, free: 2.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.616e-05/0.03048, allocations: 15.98 kB / 353.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.03048, allocations: 4 kB / 353.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.03048, allocations: 0 / 353.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001722/0.0322, allocations: 1.302 MB / 355 MB, free: 1.34 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.03226, allocations: 71.47 kB / 355 MB, free: 1.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.569e-05/0.03232, allocations: 12 kB / 355 MB, free: 1.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003374/0.03265, allocations: 107.9 kB / 355.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-05/0.03274, allocations: 52.36 kB / 355.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.03276, allocations: 19.98 kB / 355.2 MB, free: 1.082 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002862/0.03305, allocations: 362.8 kB / 355.6 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03305, allocations: 4 kB / 355.6 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003525/0.0334, allocations: 187.7 kB / 355.8 MB, free: 0.543 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.0001147/0.03352, allocations: 115.2 kB / 355.9 MB, free: 432 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.03485, allocations: 1.025 MB / 356.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.03485, allocations: 0 / 356.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005484/0.0354, allocations: 386.7 kB / 357.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.03576, allocations: 102.2 kB / 357.4 MB, free: 14.89 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.03719, allocations: 1.225 MB / 358.6 MB, free: 13.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.03734, allocations: 284.4 kB / 358.9 MB, free: 13.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/0.03753, allocations: 56.48 kB / 358.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.03753, allocations: 0 / 358.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of Templates: time 0.007745/0.04528, allocations: 9.359 MB / 368.3 MB, free: 3.934 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.6452738689258695]