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.00131/0.00131, allocations: 79.73 kB / 21.25 MB, free: 384 kB / 14.72 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.001315/0.001315, allocations: 170.7 kB / 24.5 MB, free: 3.438 MB / 14.72 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 1.479/1.479, allocations: 177.1 MB / 204.7 MB, free: 8.871 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001808/0.001808, allocations: 58.53 kB / 325.5 MB, free: 192 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1099, allocations: 53.39 MB / 378.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00558/0.1155, allocations: 3.827 MB / 382.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.1178, allocations: 1.191 MB / 383.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002134/0.118, allocations: 11.94 kB / 383.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002495/0.1183, allocations: 106.9 kB / 384 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000365/0.1186, allocations: 182.3 kB / 384.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006643/0.1193, allocations: 343.5 kB / 384.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001078/0.1204, allocations: 1.089 MB / 385.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003227/0.1207, allocations: 179.1 kB / 385.8 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004364/0.1211, allocations: 410.8 kB / 386.2 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005209/0.1217, allocations: 410.2 kB / 386.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.1218, allocations: 124 kB / 386.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.122, allocations: 123.9 kB / 386.9 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.1222, allocations: 219.4 kB / 387.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003799/0.1226, allocations: 370.5 kB / 387.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.1237, allocations: 1.23 MB / 388.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1238, allocations: 4 kB / 388.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1238, allocations: 0 / 388.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1238, allocations: 0 / 388.7 MB, free: 5.656 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.003082/0.1268, allocations: 1.206 MB / 389.9 MB, free: 4.398 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1269, allocations: 11.98 kB / 389.9 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.1271, allocations: 88.42 kB / 390 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007379/0.1278, allocations: 428 kB / 390.4 MB, free: 3.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/0.1278, allocations: 41.69 kB / 390.4 MB, free: 3.816 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.128, allocations: 56.38 kB / 390.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002344/0.1303, allocations: 1.274 MB / 391.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.863e-05/0.1303, allocations: 4 kB / 391.8 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.461e-05/0.1304, allocations: 28 kB / 391.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.1304, allocations: 12 kB / 391.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002979/0.1334, allocations: 1.011 MB / 392.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004645/0.138, allocations: 2.823 MB / 395.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002362/0.1404, allocations: 0.7391 MB / 396.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.1416, allocations: 421 kB / 396.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.1417, allocations: 12.44 kB / 396.8 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001261/0.1429, allocations: 473.9 kB / 397.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.475e-06/0.1429, allocations: 7.938 kB / 397.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.003383/0.1463, allocations: 1.094 MB / 398.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002048/0.1465, allocations: 372.3 kB / 398.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007686/0.1473, allocations: 0.5377 MB / 399.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-05/0.1473, allocations: 45.69 kB / 399.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003013/0.1476, allocations: 380.3 kB / 399.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001626/0.1478, allocations: 174.5 kB / 399.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.1481, allocations: 142.6 kB / 400 MB, free: 9.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001964/0.1483, allocations: 370.8 kB / 400.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.1495, allocations: 457.1 kB / 400.8 MB, free: 9.035 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/0.1512, allocations: 1.036 MB / 401.8 MB, free: 7.785 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.1537, allocations: 0.9753 MB / 402.8 MB, free: 6.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.1537, allocations: 8 kB / 402.8 MB, free: 6.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003058/0.1567, allocations: 1.198 MB / 404 MB, free: 5.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.358e-05/0.1568, allocations: 66.67 kB / 404.1 MB, free: 5.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1568, allocations: 8 kB / 404.1 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.1568, allocations: 8 kB / 404.1 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.1579, allocations: 227.9 kB / 404.3 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.1579, allocations: 8 kB / 404.3 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/0.159, allocations: 183.3 kB / 404.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.548e-05/0.159, allocations: 32 kB / 404.5 MB, free: 4.941 MB / 366.1 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.0003542/0.1594, allocations: 221.6 kB / 404.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.1595, allocations: 71.56 kB / 404.8 MB, free: 4.645 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001518/0.1596, allocations: 69.94 kB / 404.9 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1596, allocations: 4 kB / 404.9 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1597, allocations: 0 / 404.9 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1597, allocations: 3.984 kB / 404.9 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.163, allocations: 1.46 MB / 406.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.163, allocations: 0 / 406.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007954/0.1638, allocations: 151.8 kB / 406.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1638, allocations: 0 / 406.5 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.1638, allocations: 15.98 kB / 406.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.1638, allocations: 0 / 406.5 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.1638, allocations: 7.938 kB / 406.5 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003518/0.1674, allocations: 1.298 MB / 407.8 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.1675, allocations: 71.47 kB / 407.9 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.26e-05/0.1676, allocations: 15.94 kB / 407.9 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007779/0.1684, allocations: 107.9 kB / 408 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.1685, allocations: 48.42 kB / 408.1 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-05/0.1686, allocations: 16 kB / 408.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005613/0.1691, allocations: 366.8 kB / 408.5 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1691, allocations: 0 / 408.5 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006748/0.1698, allocations: 183.7 kB / 408.6 MB, free: 0.7891 MB / 366.1 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.0001898/0.17, allocations: 115.1 kB / 408.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002719/0.1727, allocations: 1.032 MB / 409.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.1727, allocations: 4 kB / 409.8 MB, free: 15.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.1738, allocations: 391.7 kB / 410.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.1744, allocations: 102.2 kB / 410.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00257/0.177, allocations: 1.251 MB / 411.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.1773, allocations: 284.4 kB / 411.8 MB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003541/0.1777, allocations: 80.66 kB / 411.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.1778, allocations: 52.48 kB / 411.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.482e-06/0.1778, allocations: 0 / 411.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of Templates: time 0.01798/0.1958, allocations: 8.787 MB / 420.7 MB, free: 4.746 MB / 382.1 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/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.809035617043264]