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.001838/0.001838, allocations: 123.4 kB / 17.79 MB, free: 5.266 MB / 14.72 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.00232/0.00232, allocations: 200.3 kB / 20.74 MB, free: 2.32 MB / 14.72 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 1.614/1.614, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001608/0.001608, allocations: 43.94 kB / 373.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1119, allocations: 53.34 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.2388/0.3508, allocations: 4.267 MB / 431.1 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.3536, allocations: 1.203 MB / 432.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003073/0.354, allocations: 16.58 kB / 432.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.3542, allocations: 109.8 kB / 432.4 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003529/0.3546, allocations: 188.3 kB / 432.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000641/0.3552, allocations: 328.8 kB / 432.9 MB, free: 8.023 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.3562, allocations: 1.092 MB / 434 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000354/0.3566, allocations: 198.6 kB / 434.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003998/0.357, allocations: 413.2 kB / 434.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004666/0.3574, allocations: 464.4 kB / 435.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001606/0.3576, allocations: 118.7 kB / 435.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001716/0.3578, allocations: 119.1 kB / 435.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001654/0.3579, allocations: 224.9 kB / 435.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003588/0.3583, allocations: 450.5 kB / 435.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001475/0.3598, allocations: 1.226 MB / 437.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3598, allocations: 0 / 437.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3598, allocations: 0 / 437.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.638e-05/0.3598, allocations: 0 / 437.2 MB, free: 6.59 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.003445/0.3632, allocations: 1.278 MB / 438.5 MB, free: 5.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3633, allocations: 13.53 kB / 438.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.3635, allocations: 87.97 kB / 438.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007163/0.3642, allocations: 486.3 kB / 439 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.457e-05/0.3643, allocations: 47.09 kB / 439.1 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.3644, allocations: 59.78 kB / 439.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.3669, allocations: 0.9715 MB / 440.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.3669, allocations: 5.781 kB / 440.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-05/0.367, allocations: 27.66 kB / 440.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.367, allocations: 16.16 kB / 440.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003478/0.3705, allocations: 0.9986 MB / 441.1 MB, free: 4.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005209/0.3757, allocations: 3.205 MB / 444.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.3782, allocations: 0.8824 MB / 445.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/0.3795, allocations: 428.5 kB / 445.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.886e-05/0.3796, allocations: 15.8 kB / 445.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001338/0.3809, allocations: 467.3 kB / 446.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.435e-06/0.3809, allocations: 4 kB / 446.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003591/0.3845, allocations: 1.094 MB / 447.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.3846, allocations: 374.1 kB / 447.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009082/0.3855, allocations: 0.5814 MB / 448.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.41e-05/0.3856, allocations: 38.7 kB / 448.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.3858, allocations: 374.9 kB / 448.6 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3859, allocations: 173.9 kB / 448.7 MB, free: 160 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002632/0.3862, allocations: 136.8 kB / 448.9 MB, free: 88 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.3864, allocations: 374.9 kB / 449.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.3878, allocations: 401.9 kB / 449.6 MB, free: 15.63 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001625/0.3895, allocations: 0.6762 MB / 450.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002649/0.3921, allocations: 0.9703 MB / 451.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.3921, allocations: 5.625 kB / 451.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003308/0.3954, allocations: 1.137 MB / 452.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/0.3955, allocations: 66.5 kB / 452.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.3955, allocations: 5.656 kB / 452.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.692e-05/0.3955, allocations: 19.89 kB / 452.5 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001111/0.3967, allocations: 216.8 kB / 452.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.138e-05/0.3967, allocations: 14.92 kB / 452.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.3979, allocations: 190.4 kB / 452.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.638e-05/0.398, allocations: 42.11 kB / 453 MB, free: 13.98 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.0003951/0.3984, allocations: 226.8 kB / 453.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.3985, allocations: 68.58 kB / 453.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.3987, allocations: 70.91 kB / 453.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.872e-06/0.3987, allocations: 5.5 kB / 453.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/0.3987, allocations: 4.734 kB / 453.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3987, allocations: 0 / 453.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/0.4026, allocations: 1.685 MB / 455 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.4026, allocations: 0 / 455 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008732/0.4035, allocations: 145 kB / 455.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.261e-06/0.4035, allocations: 3.562 kB / 455.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.444e-05/0.4035, allocations: 11.86 kB / 455.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.4035, allocations: 2.812 kB / 455.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4035, allocations: 4 kB / 455.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003847/0.4074, allocations: 1.306 MB / 456.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002114/0.4076, allocations: 153.7 kB / 456.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.4077, allocations: 14.34 kB / 456.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008491/0.4085, allocations: 104.7 kB / 456.8 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/0.4087, allocations: 57.8 kB / 456.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.983e-05/0.4087, allocations: 18.19 kB / 456.8 MB, free: 11.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006697/0.4094, allocations: 402.3 kB / 457.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4094, allocations: 3.938 kB / 457.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007818/0.4102, allocations: 177 kB / 457.4 MB, free: 11.23 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.0002431/0.4104, allocations: 122.3 kB / 457.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003052/0.4135, allocations: 0.9605 MB / 458.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.4135, allocations: 1.125 kB / 458.5 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.4147, allocations: 402.5 kB / 458.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.4154, allocations: 105.6 kB / 459 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003026/0.4184, allocations: 1.254 MB / 460.2 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006121/0.4191, allocations: 0.8807 MB / 461.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004331/0.4195, allocations: 87.95 kB / 461.2 MB, free: 8.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002438/0.4197, allocations: 54.39 kB / 461.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4197, allocations: 0 / 461.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of Templates: time 0.01895/0.4387, allocations: 8.917 MB / 470.2 MB, free: 3.625 MB / 366.1 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: 5.185702949762344]