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.0009568/0.0009568, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.0009221/0.0009221, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.9977/0.9977, allocations: 177 MB / 204.8 MB, free: 5.559 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.583e-06/1.583e-06, allocations: 0 / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.213e-05/2.372e-05, allocations: 5.266 kB / 272.9 MB, free: 1.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00387/0.003893, allocations: 4.171 MB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.005615, allocations: 1.195 MB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00025/0.005865, allocations: 15.94 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.006083, allocations: 106.8 kB / 278.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.006371, allocations: 190.2 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005837/0.006955, allocations: 343.5 kB / 278.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008389/0.007794, allocations: 1.12 MB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.00806, allocations: 194.9 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005477/0.008608, allocations: 0.5966 MB / 280.8 MB, free: 9.453 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003438/0.008952, allocations: 371 kB / 281.2 MB, free: 9.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.009065, allocations: 120 kB / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.009168, allocations: 120 kB / 281.4 MB, free: 8.855 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.009286, allocations: 231.3 kB / 281.7 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.009524, allocations: 319.3 kB / 282 MB, free: 8.316 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008592/0.01038, allocations: 0.7205 MB / 282.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.01039, allocations: 0 / 282.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.01039, allocations: 0 / 282.7 MB, free: 7.594 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.0104, allocations: 0 / 282.7 MB, free: 7.594 MB / 266.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.001528/0.01193, allocations: 1.224 MB / 283.9 MB, free: 6.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.01197, allocations: 11.98 kB / 283.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.01213, allocations: 136.4 kB / 284.1 MB, free: 6.172 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.01256, allocations: 426.1 kB / 284.5 MB, free: 5.727 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.672e-05/0.01259, allocations: 53.67 kB / 284.5 MB, free: 5.672 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.276e-05/0.01267, allocations: 64.38 kB / 284.6 MB, free: 5.609 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.01368, allocations: 1.035 MB / 285.6 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.0137, allocations: 192 / 285.6 MB, free: 4.418 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.204e-05/0.01375, allocations: 32.38 kB / 285.7 MB, free: 4.387 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.01377, allocations: 15.94 kB / 285.7 MB, free: 4.371 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005825/0.01435, allocations: 361.6 kB / 286 MB, free: 4.016 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002625/0.01697, allocations: 3.038 MB / 289.1 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009656/0.01794, allocations: 389.3 kB / 289.5 MB, free: 468 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.01824, allocations: 197.1 kB / 289.6 MB, free: 268 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.769e-05/0.01828, allocations: 20.48 kB / 289.7 MB, free: 248 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1161/0.1344, allocations: 253.4 kB / 289.9 MB, free: 26.25 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.367e-06/0.1344, allocations: 0 / 289.9 MB, free: 26.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.001101/0.1355, allocations: 0.5016 MB / 290.4 MB, free: 26.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.1356, allocations: 373.7 kB / 290.8 MB, free: 25.78 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004511/0.136, allocations: 0.5262 MB / 291.3 MB, free: 25.6 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.1361, allocations: 40.83 kB / 291.3 MB, free: 25.57 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.1363, allocations: 421.1 kB / 291.8 MB, free: 25.36 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.937e-05/0.1364, allocations: 174.1 kB / 291.9 MB, free: 25.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.1366, allocations: 146.5 kB / 292.1 MB, free: 25.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1367, allocations: 0.5401 MB / 292.6 MB, free: 24.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003051/0.137, allocations: 197.3 kB / 292.8 MB, free: 24.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004319/0.1374, allocations: 0.8793 MB / 293.7 MB, free: 23.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006079/0.138, allocations: 0.6217 MB / 294.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.138, allocations: 2.188 kB / 294.3 MB, free: 23.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0009704/0.139, allocations: 0.7421 MB / 295 MB, free: 23.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.066e-05/0.139, allocations: 63.88 kB / 295.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.139, allocations: 7.156 kB / 295.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.429e-05/0.1391, allocations: 10.75 kB / 295.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005381/0.1396, allocations: 200.9 kB / 295.3 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.613e-05/0.1396, allocations: 15.19 kB / 295.3 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004329/0.1401, allocations: 128.3 kB / 295.5 MB, free: 23.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.1401, allocations: 35.7 kB / 295.5 MB, free: 23.07 MB / 266.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.0001775/0.1403, allocations: 217.6 kB / 295.7 MB, free: 22.89 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.938e-05/0.1404, allocations: 81.05 kB / 295.8 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.913e-05/0.1405, allocations: 69.16 kB / 295.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.1405, allocations: 6.188 kB / 295.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.1405, allocations: 3.531 kB / 295.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.1405, allocations: 2.719 kB / 295.9 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001714/0.1422, allocations: 1.067 MB / 296.9 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.1422, allocations: 0.7969 kB / 296.9 MB, free: 22.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004163/0.1426, allocations: 120.5 kB / 297.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.1426, allocations: 1.703 kB / 297.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.478e-05/0.1427, allocations: 11.19 kB / 297.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.1427, allocations: 6.188 kB / 297.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1427, allocations: 0 / 297.1 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1437, allocations: 0.6819 MB / 297.8 MB, free: 22.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.1438, allocations: 69.52 kB / 297.8 MB, free: 22.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.038e-05/0.1439, allocations: 14.28 kB / 297.8 MB, free: 22.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/0.1442, allocations: 65.69 kB / 297.9 MB, free: 22.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/0.1443, allocations: 53.14 kB / 298 MB, free: 22.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.1443, allocations: 15.59 kB / 298 MB, free: 22.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003216/0.1447, allocations: 336 kB / 298.3 MB, free: 21.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1447, allocations: 0 / 298.3 MB, free: 21.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005415/0.1452, allocations: 188.9 kB / 298.5 MB, free: 21.91 MB / 266.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.0001255/0.1453, allocations: 114.5 kB / 298.6 MB, free: 21.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009112/0.1462, allocations: 0.5935 MB / 299.2 MB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.1463, allocations: 5.062 kB / 299.2 MB, free: 21.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.1467, allocations: 194.2 kB / 299.4 MB, free: 21.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005794/0.1472, allocations: 120.4 kB / 299.5 MB, free: 21.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.1491, allocations: 1.052 MB / 300.5 MB, free: 20.85 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001583/0.1492, allocations: 128.5 kB / 300.7 MB, free: 20.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003859/0.1496, allocations: 81.88 kB / 300.8 MB, free: 20.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.1498, allocations: 59.88 kB / 300.8 MB, free: 20.73 MB / 266.7 MB Notification: Performance of SimCode: time 2.274e-06/0.1498, allocations: 0 / 300.8 MB, free: 20.73 MB / 266.7 MB Notification: Performance of Templates: time 0.01127/0.1611, allocations: 9.243 MB / 310.1 MB, free: 15.48 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.058720181696117]