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.001789/0.001789, allocations: 106.1 kB / 19.8 MB, free: 2.5 MB / 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.002182/0.002182, allocations: 216.7 kB / 22.99 MB, free: 5.574 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.498/1.498, allocations: 230.2 MB / 256.2 MB, free: 8.543 MB / 206.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.001912/0.001912, allocations: 55.91 kB / 376.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.3095, allocations: 53.33 MB / 429.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005973/0.3154, allocations: 4.287 MB / 434.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.3182, allocations: 1.223 MB / 435.3 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.3185, allocations: 12 kB / 435.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000292/0.3188, allocations: 110.8 kB / 435.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003593/0.3191, allocations: 178.3 kB / 435.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006844/0.3198, allocations: 335.5 kB / 435.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.3209, allocations: 1.089 MB / 437 MB, free: 308 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003637/0.3213, allocations: 202.6 kB / 437.2 MB, free: 100 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004956/0.3218, allocations: 402.8 kB / 437.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005405/0.3223, allocations: 466.2 kB / 438.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.3225, allocations: 116 kB / 438.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.3226, allocations: 120 kB / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002169/0.3228, allocations: 219.3 kB / 438.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004581/0.3233, allocations: 454 kB / 439 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001276/0.3246, allocations: 1.231 MB / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3246, allocations: 0 / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3246, allocations: 3.938 kB / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.3246, allocations: 0 / 440.2 MB, free: 13.12 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.002913/0.3275, allocations: 1.274 MB / 441.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.217e-05/0.3276, allocations: 16.03 kB / 441.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.3277, allocations: 84.42 kB / 441.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006547/0.3284, allocations: 481.9 kB / 442 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.203e-05/0.3284, allocations: 45.69 kB / 442.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/0.3285, allocations: 56.38 kB / 442.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.3307, allocations: 0.9684 MB / 443.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.3307, allocations: 7.938 kB / 443.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.337e-05/0.3308, allocations: 24 kB / 443.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.3308, allocations: 19.98 kB / 443.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00288/0.3337, allocations: 0.9952 MB / 444.1 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005177/0.3389, allocations: 3.2 MB / 447.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002364/0.3413, allocations: 0.9041 MB / 448.3 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.3424, allocations: 425.7 kB / 448.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.3425, allocations: 16.42 kB / 448.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/0.3437, allocations: 461.1 kB / 449.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.214e-06/0.3437, allocations: 0 / 449.1 MB, free: 3.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003177/0.3468, allocations: 1.092 MB / 450.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002343/0.3471, allocations: 380.2 kB / 450.6 MB, free: 2.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008459/0.3479, allocations: 0.581 MB / 451.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.663e-05/0.348, allocations: 45.64 kB / 451.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003009/0.3483, allocations: 372.5 kB / 451.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.3484, allocations: 178.5 kB / 451.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.3487, allocations: 134.6 kB / 451.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001995/0.3489, allocations: 374.8 kB / 452.3 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.3501, allocations: 401.7 kB / 452.7 MB, free: 172 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.3516, allocations: 0.6773 MB / 453.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/0.3539, allocations: 0.974 MB / 454.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3539, allocations: 3.938 kB / 454.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002855/0.3567, allocations: 1.142 MB / 455.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.925e-05/0.3568, allocations: 59.41 kB / 455.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.3568, allocations: 8 kB / 455.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.3568, allocations: 8 kB / 455.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.3579, allocations: 227.9 kB / 455.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/0.3579, allocations: 15.94 kB / 455.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.3589, allocations: 187.2 kB / 455.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.447e-05/0.359, allocations: 35.98 kB / 456 MB, free: 12.58 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.0003233/0.3593, allocations: 233.5 kB / 456.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3594, allocations: 67.58 kB / 456.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.3596, allocations: 74.41 kB / 456.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.3596, allocations: 4 kB / 456.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.3596, allocations: 4 kB / 456.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.114e-06/0.3596, allocations: 3.984 kB / 456.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003448/0.363, allocations: 1.673 MB / 458 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.363, allocations: 3.938 kB / 458 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007946/0.3638, allocations: 155.8 kB / 458.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.3638, allocations: 0 / 458.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.3639, allocations: 15.98 kB / 458.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.3639, allocations: 4 kB / 458.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3639, allocations: 0 / 458.2 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003308/0.3672, allocations: 1.303 MB / 459.5 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.3674, allocations: 152.6 kB / 459.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.3675, allocations: 15.94 kB / 459.7 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007481/0.3682, allocations: 107.9 kB / 459.8 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.3684, allocations: 52.31 kB / 459.8 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.652e-05/0.3684, allocations: 12 kB / 459.8 MB, free: 8.613 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006198/0.3691, allocations: 406.8 kB / 460.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3691, allocations: 0 / 460.2 MB, free: 8.219 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007002/0.3698, allocations: 183.7 kB / 460.4 MB, free: 8.039 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.0001904/0.37, allocations: 111.2 kB / 460.5 MB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.3726, allocations: 0.9656 MB / 461.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.3726, allocations: 0 / 461.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.3737, allocations: 398.9 kB / 461.9 MB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000662/0.3743, allocations: 112.6 kB / 462 MB, free: 6.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002737/0.3771, allocations: 1.257 MB / 463.2 MB, free: 5.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.3776, allocations: 0.8824 MB / 464.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004802/0.3781, allocations: 84.86 kB / 464.2 MB, free: 4.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.3783, allocations: 51.42 kB / 464.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3783, allocations: 4 kB / 464.3 MB, free: 4.105 MB / 366.1 MB Notification: Performance of Templates: time 0.01971/0.398, allocations: 9.09 MB / 473.4 MB, free: 11.08 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 -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: 5.027761809527874]