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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 103.4 kB / 16.62 MB, free: 6.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 193.9 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009943/0.0009944, allocations: 43.3 kB / 300.1 MB, free: 6.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09002, allocations: 49.45 MB / 349.6 MB, free: 4.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01267/0.1027, allocations: 13.88 MB / 363.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.167/0.2698, allocations: 20.1 MB / 383.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.271, allocations: 61.94 kB / 383.6 MB, free: 8.289 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002315/0.2733, allocations: 0.9747 MB / 384.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006207/0.2796, allocations: 1.946 MB / 386.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005092/0.2847, allocations: 1.249 MB / 387.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009683/0.2944, allocations: 6.42 MB / 394.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006597/0.2951, allocations: 431.4 kB / 394.6 MB, free: 4.445 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.2968, allocations: 1.044 MB / 395.7 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008748/0.2977, allocations: 1.052 MB / 396.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000159/0.2978, allocations: 75.5 kB / 396.8 MB, free: 3.477 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004137/0.302, allocations: 1.486 MB / 398.3 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.3022, allocations: 314 kB / 398.6 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008636/0.303, allocations: 1.303 MB / 399.9 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.3062, allocations: 3.587 MB / 403.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3062, allocations: 0 / 403.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3062, allocations: 0 / 403.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.352e-05/0.3062, allocations: 0 / 403.5 MB, free: 15.27 MB / 318.1 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.004358/0.3106, allocations: 3.517 MB / 407 MB, free: 11.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3107, allocations: 8.031 kB / 407 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003567/0.311, allocations: 375.4 kB / 407.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.3142, allocations: 2.512 MB / 409.9 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.3143, allocations: 33 kB / 409.9 MB, free: 8.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.3144, allocations: 51.91 kB / 410 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.3156, allocations: 0.7078 MB / 410.7 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3157, allocations: 3.938 kB / 410.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.627e-05/0.3157, allocations: 16 kB / 410.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.3158, allocations: 23.92 kB / 410.7 MB, free: 7.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3172, allocations: 0.7929 MB / 411.5 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00437/0.3216, allocations: 2.887 MB / 414.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.3228, allocations: 0.7006 MB / 415.1 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009537/0.3237, allocations: 0.6613 MB / 415.8 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02638/0.3501, allocations: 30.08 MB / 445.8 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007078/0.3509, allocations: 365.5 kB / 446.2 MB, free: 184 kB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.485e-06/0.3509, allocations: 0 / 446.2 MB, free: 184 kB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003003/0.3539, allocations: 1.384 MB / 447.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.354, allocations: 67.39 kB / 447.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/0.357, allocations: 2.795 MB / 450.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.221e-05/0.3571, allocations: 33.7 kB / 450.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.3581, allocations: 1.383 MB / 451.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.3583, allocations: 177.6 kB / 452 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003286/0.3586, allocations: 218.1 kB / 452.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3588, allocations: 341.9 kB / 452.6 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005564/0.3594, allocations: 241.8 kB / 452.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007381/0.3601, allocations: 0.5813 MB / 453.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.3614, allocations: 0.884 MB / 454.3 MB, free: 7.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.3614, allocations: 4 kB / 454.3 MB, free: 7.664 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002026/0.3635, allocations: 1.279 MB / 455.6 MB, free: 6.375 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3635, allocations: 12 kB / 455.6 MB, free: 6.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/0.3636, allocations: 80 kB / 455.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005376/0.3642, allocations: 282.8 kB / 455.9 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005599/0.3647, allocations: 171.7 kB / 456.1 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00086/0.3656, allocations: 0.8801 MB / 457 MB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009637/0.3666, allocations: 107.1 kB / 457.1 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.852e-05/0.3667, allocations: 60 kB / 457.1 MB, free: 4.77 MB / 366.1 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.0006111/0.3673, allocations: 421.5 kB / 457.5 MB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/0.3676, allocations: 367.6 kB / 457.9 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002865/0.3705, allocations: 1.278 MB / 459.2 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3705, allocations: 7.938 kB / 459.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3705, allocations: 0 / 459.2 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3705, allocations: 11.98 kB / 459.2 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003172/0.3737, allocations: 2.185 MB / 461.4 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.757e-05/0.3738, allocations: 72.12 kB / 461.5 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003019/0.3741, allocations: 63.88 kB / 461.5 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004405/0.3746, allocations: 271.7 kB / 461.8 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.735e-05/0.3747, allocations: 32.05 kB / 461.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008309/0.3755, allocations: 0.8568 MB / 462.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.3755, allocations: 4.031 kB / 462.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/0.3772, allocations: 1.129 MB / 463.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006482/0.3779, allocations: 460.4 kB / 464.3 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002805/0.3782, allocations: 15.98 kB / 464.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000644/0.3788, allocations: 27.97 kB / 464.3 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.379, allocations: 67.89 kB / 464.4 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.145e-05/0.3791, allocations: 39.98 kB / 464.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002258/0.3814, allocations: 1.827 MB / 466.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3814, allocations: 0 / 466.2 MB, free: 11.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00125/0.3826, allocations: 0.5583 MB / 466.8 MB, free: 10.9 MB / 382.1 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.001087/0.3837, allocations: 0.7801 MB / 467.6 MB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.3855, allocations: 0.8611 MB / 468.4 MB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3855, allocations: 0 / 468.4 MB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008915/0.3864, allocations: 0.4932 MB / 468.9 MB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.3888, allocations: 0.6022 MB / 469.5 MB, free: 8.105 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005467/0.3943, allocations: 4.702 MB / 474.2 MB, free: 3.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009637/0.3953, allocations: 1.604 MB / 475.8 MB, free: 1.719 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001348/0.3966, allocations: 390.9 kB / 476.2 MB, free: 1.332 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.3969, allocations: 159.4 kB / 476.4 MB, free: 1.18 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3969, allocations: 0 / 476.4 MB, free: 1.18 MB / 382.1 MB Notification: Performance of Templates: time 0.0563/0.4532, allocations: 33.1 MB / 0.4975 GB, free: 348 kB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.makefile (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) 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) Reference file matches