Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.0009246/0.0009246, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004935/0.004935, allocations: 153.4 kB / 24.7 MB, free: 8.898 MB / 18.57 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 0.8534/0.8534, allocations: 177 MB / 204.9 MB, free: 5.777 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.532e-05/2.7e-05, allocations: 2.281 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003615/0.003642, allocations: 3.834 MB / 329.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.0051, allocations: 1.183 MB / 330.8 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001906/0.00529, allocations: 15.88 kB / 330.8 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.005473, allocations: 114.8 kB / 330.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.005719, allocations: 194.2 kB / 331.1 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006027/0.006321, allocations: 339.5 kB / 331.5 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007255/0.007047, allocations: 1.112 MB / 332.6 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002603/0.007307, allocations: 187.1 kB / 332.8 MB, free: 8.375 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004461/0.007753, allocations: 0.6044 MB / 333.4 MB, free: 7.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.008052, allocations: 355.1 kB / 333.7 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.476e-05/0.008147, allocations: 119.9 kB / 333.8 MB, free: 7.305 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.557e-05/0.008233, allocations: 120 kB / 333.9 MB, free: 7.188 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.008347, allocations: 223.3 kB / 334.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004775/0.008825, allocations: 323.3 kB / 334.5 MB, free: 6.652 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007727/0.009597, allocations: 1.297 MB / 335.8 MB, free: 5.352 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.009602, allocations: 0 / 335.8 MB, free: 5.352 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.009604, allocations: 0 / 335.8 MB, free: 5.352 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.009614, allocations: 0 / 335.8 MB, free: 5.352 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.001636/0.01125, allocations: 1.194 MB / 337 MB, free: 4.109 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.01129, allocations: 15.98 kB / 337 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.0114, allocations: 84.42 kB / 337.1 MB, free: 4.012 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005445/0.01194, allocations: 427.3 kB / 337.5 MB, free: 3.566 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.01198, allocations: 41.69 kB / 337.5 MB, free: 3.527 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.329e-05/0.01205, allocations: 64.31 kB / 337.6 MB, free: 3.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.01341, allocations: 1.266 MB / 338.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.01342, allocations: 4.125 kB / 338.9 MB, free: 2.059 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/0.01347, allocations: 32.3 kB / 338.9 MB, free: 2.027 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.01349, allocations: 19.94 kB / 338.9 MB, free: 2.008 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.01514, allocations: 0.9952 MB / 339.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003406/0.01854, allocations: 2.823 MB / 342.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.01983, allocations: 0.7307 MB / 343.5 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006402/0.02047, allocations: 422 kB / 343.9 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.669e-05/0.0205, allocations: 16.48 kB / 343.9 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006708/0.02117, allocations: 469.9 kB / 344.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.414e-06/0.02118, allocations: 4 kB / 344.3 MB, free: 12.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.001782/0.02296, allocations: 1.094 MB / 345.4 MB, free: 11.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.02308, allocations: 380.3 kB / 345.8 MB, free: 10.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004819/0.02356, allocations: 0.5416 MB / 346.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.0236, allocations: 37.7 kB / 346.4 MB, free: 10.28 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.02379, allocations: 376.3 kB / 346.8 MB, free: 9.902 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.9e-05/0.02389, allocations: 178.5 kB / 346.9 MB, free: 9.727 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001669/0.02406, allocations: 138.6 kB / 347.1 MB, free: 9.586 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.02417, allocations: 378.7 kB / 347.4 MB, free: 9.207 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006789/0.02485, allocations: 461.1 kB / 347.9 MB, free: 8.742 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/0.02597, allocations: 1.033 MB / 348.9 MB, free: 7.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.02722, allocations: 0.9715 MB / 349.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.02722, allocations: 4 kB / 349.9 MB, free: 6.426 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001594/0.02881, allocations: 1.19 MB / 351.1 MB, free: 5.199 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.02886, allocations: 71.33 kB / 351.1 MB, free: 5.117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.02888, allocations: 8 kB / 351.2 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.0289, allocations: 12 kB / 351.2 MB, free: 5.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004886/0.02938, allocations: 219.9 kB / 351.4 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.0294, allocations: 15.94 kB / 351.4 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005039/0.0299, allocations: 179.3 kB / 351.6 MB, free: 4.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.237e-05/0.02994, allocations: 36 kB / 351.6 MB, free: 4.656 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.0002282/0.03017, allocations: 229.6 kB / 351.8 MB, free: 4.422 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.03023, allocations: 59.62 kB / 351.9 MB, free: 4.363 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.995e-05/0.03033, allocations: 77.88 kB / 352 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.03033, allocations: 4 kB / 352 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.03034, allocations: 3.938 kB / 352 MB, free: 4.277 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.03034, allocations: 4 kB / 352 MB, free: 4.273 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.03227, allocations: 1.452 MB / 353.4 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.03227, allocations: 4 kB / 353.4 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003585/0.03263, allocations: 147.8 kB / 353.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.03263, allocations: 0 / 353.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/0.03266, allocations: 19.98 kB / 353.6 MB, free: 2.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.03267, allocations: 4 kB / 353.6 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.03267, allocations: 0 / 353.6 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001795/0.03446, allocations: 1.302 MB / 354.9 MB, free: 1.293 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.622e-05/0.03454, allocations: 67.47 kB / 355 MB, free: 1.227 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.03459, allocations: 12 kB / 355 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003407/0.03493, allocations: 107.9 kB / 355.1 MB, free: 1.109 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.03502, allocations: 48.41 kB / 355.1 MB, free: 1.062 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.03505, allocations: 16 kB / 355.2 MB, free: 1.047 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003244/0.03537, allocations: 370.8 kB / 355.5 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03537, allocations: 0 / 355.5 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006444/0.03602, allocations: 187.7 kB / 355.7 MB, free: 0.5039 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.0001173/0.03613, allocations: 118.4 kB / 355.8 MB, free: 392 kB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.03754, allocations: 1.024 MB / 356.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.03754, allocations: 0 / 356.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005751/0.03812, allocations: 391.7 kB / 357.2 MB, free: 14.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000371/0.03849, allocations: 106.1 kB / 357.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001555/0.04004, allocations: 1.221 MB / 358.5 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.04023, allocations: 284.4 kB / 358.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/0.04041, allocations: 56.48 kB / 358.9 MB, free: 13.22 MB / 330.7 MB Notification: Performance of SimCode: time 1.473e-06/0.04041, allocations: 4 kB / 358.9 MB, free: 13.22 MB / 330.7 MB Notification: Performance of Templates: time 0.008667/0.04908, allocations: 9.355 MB / 368.2 MB, free: 3.887 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.366301614791155]