Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008042/0.0008042, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003513/0.003513, allocations: 153.2 kB / 24.69 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8128/0.8128, allocations: 173.4 MB / 201.2 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 3.938 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.871e-05, allocations: 6.219 kB / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.007463/0.007481, allocations: 11.81 MB / 331.5 MB, free: 9.988 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01453/0.02201, allocations: 17.5 MB / 349 MB, free: 8.414 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.02346, allocations: 189.8 kB / 349.2 MB, free: 8.227 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.02532, allocations: 1.048 MB / 350.2 MB, free: 7.172 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004301/0.02962, allocations: 2.378 MB / 352.6 MB, free: 4.773 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002484/0.0321, allocations: 1.422 MB / 354 MB, free: 3.348 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005322/0.03743, allocations: 6.562 MB / 360.6 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.03781, allocations: 241 kB / 360.8 MB, free: 12.49 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001185/0.039, allocations: 1.508 MB / 362.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005943/0.03959, allocations: 0.7512 MB / 363.1 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.883e-05/0.03968, allocations: 68 kB / 363.2 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00198/0.04166, allocations: 1.198 MB / 364.4 MB, free: 8.961 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.04182, allocations: 317.6 kB / 364.7 MB, free: 8.648 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004531/0.04227, allocations: 0.7048 MB / 365.4 MB, free: 7.941 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002501/0.04477, allocations: 3.624 MB / 369 MB, free: 4.305 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.04478, allocations: 0 / 369 MB, free: 4.305 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.04478, allocations: 0 / 369 MB, free: 4.305 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.0448, allocations: 0 / 369 MB, free: 4.305 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002637/0.04743, allocations: 3.515 MB / 372.5 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.04747, allocations: 8.922 kB / 372.5 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.04771, allocations: 393.5 kB / 372.9 MB, free: 352 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002311/0.05002, allocations: 2.355 MB / 375.3 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.05005, allocations: 40.94 kB / 375.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.94e-05/0.05013, allocations: 51.89 kB / 375.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007688/0.0509, allocations: 0.7031 MB / 376 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.05091, allocations: 0 / 376 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.05095, allocations: 24 kB / 376.1 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.05096, allocations: 19.98 kB / 376.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008496/0.05181, allocations: 0.7851 MB / 376.9 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002585/0.0544, allocations: 2.576 MB / 379.5 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006721/0.05507, allocations: 0.5628 MB / 380 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005653/0.05563, allocations: 0.5811 MB / 380.6 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.06968, allocations: 13.65 MB / 394.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004458/0.07012, allocations: 377.7 kB / 394.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.934e-06/0.07012, allocations: 0 / 394.6 MB, free: 10.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001685/0.07181, allocations: 1.312 MB / 395.9 MB, free: 8.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.07185, allocations: 63.39 kB / 396 MB, free: 8.676 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002297/0.07415, allocations: 2.794 MB / 398.8 MB, free: 5.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.07418, allocations: 41.7 kB / 398.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007244/0.0749, allocations: 1.392 MB / 400.2 MB, free: 4.414 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.175e-05/0.075, allocations: 170.6 kB / 400.4 MB, free: 4.246 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.07518, allocations: 226.3 kB / 400.6 MB, free: 4.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.37e-05/0.07527, allocations: 345.9 kB / 400.9 MB, free: 3.676 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003101/0.07558, allocations: 233.9 kB / 401.2 MB, free: 3.445 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004382/0.07602, allocations: 0.5888 MB / 401.8 MB, free: 2.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000798/0.07682, allocations: 0.8889 MB / 402.6 MB, free: 1.629 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.07682, allocations: 7.938 kB / 402.7 MB, free: 1.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001498/0.07832, allocations: 1.279 MB / 403.9 MB, free: 336 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.07834, allocations: 12 kB / 403.9 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.595e-05/0.0784, allocations: 80 kB / 404 MB, free: 244 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.07877, allocations: 276.9 kB / 404.3 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002891/0.07905, allocations: 167.6 kB / 404.5 MB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005925/0.07965, allocations: 0.8803 MB / 405.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004773/0.08012, allocations: 111.3 kB / 405.4 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.991e-05/0.08019, allocations: 64 kB / 405.5 MB, free: 14.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004432/0.08064, allocations: 426.2 kB / 405.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.08083, allocations: 373.7 kB / 406.3 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.08234, allocations: 1.264 MB / 407.6 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.08235, allocations: 7.938 kB / 407.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.08236, allocations: 8 kB / 407.6 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.08236, allocations: 3.984 kB / 407.6 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.08432, allocations: 2.026 MB / 409.6 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-05/0.08436, allocations: 72 kB / 409.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.08451, allocations: 55.94 kB / 409.7 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002706/0.08478, allocations: 268.7 kB / 410 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.08482, allocations: 31.98 kB / 410 MB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008042/0.08562, allocations: 0.8638 MB / 410.9 MB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.08562, allocations: 0 / 410.9 MB, free: 9.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.08661, allocations: 1.14 MB / 412 MB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/0.087, allocations: 411.2 kB / 412.4 MB, free: 7.652 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.08714, allocations: 8 kB / 412.4 MB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.08747, allocations: 39.95 kB / 412.5 MB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.08757, allocations: 63.81 kB / 412.5 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.08762, allocations: 43.98 kB / 412.6 MB, free: 7.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001382/0.089, allocations: 1.799 MB / 414.4 MB, free: 5.695 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.089, allocations: 0 / 414.4 MB, free: 5.695 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007932/0.08979, allocations: 0.5696 MB / 414.9 MB, free: 5.125 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007598/0.09055, allocations: 0.8156 MB / 415.8 MB, free: 4.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009769/0.09153, allocations: 0.8226 MB / 416.6 MB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.09153, allocations: 0 / 416.6 MB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004765/0.09201, allocations: 481 kB / 417.1 MB, free: 2.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.0935, allocations: 0.595 MB / 417.6 MB, free: 2.367 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003159/0.09666, allocations: 3.99 MB / 421.6 MB, free: 14.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.09722, allocations: 1.052 MB / 422.7 MB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001524/0.09738, allocations: 168.5 kB / 422.9 MB, free: 13.07 MB / 394.7 MB Notification: Performance of SimCode: time 9.01e-07/0.09738, allocations: 0 / 422.9 MB, free: 13.07 MB / 394.7 MB Notification: Performance of Templates: time 0.1595/0.2569, allocations: 49.36 MB / 472.2 MB, free: 110.1 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.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: 7.9858395690098405]