Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001418/0.001418, allocations: 98.27 kB / 18.4 MB, free: 4.699 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.001561/0.001561, allocations: 190.3 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.325/1.325, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.92 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07698/0.07814, allocations: 46.62 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1686/0.2467, allocations: 13.36 MB / 389.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02191/0.2687, allocations: 19.32 MB / 408.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003469/0.2722, allocations: 124.6 kB / 408.6 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003663/0.2759, allocations: 1.084 MB / 409.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009651/0.2856, allocations: 2.234 MB / 411.9 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.2916, allocations: 1.382 MB / 413.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0113/0.3029, allocations: 6.213 MB / 419.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009706/0.3039, allocations: 433.7 kB / 419.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002034/0.3059, allocations: 0.971 MB / 420.9 MB, free: 1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001583/0.3075, allocations: 1.032 MB / 421.9 MB, free: 412 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002026/0.3078, allocations: 70.03 kB / 422 MB, free: 412 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004389/0.3122, allocations: 1.151 MB / 423.2 MB, free: 76 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003996/0.3126, allocations: 317.9 kB / 423.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001582/0.3142, allocations: 1.3 MB / 424.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005633/0.3198, allocations: 3.662 MB / 428.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3199, allocations: 4 kB / 428.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3199, allocations: 0 / 428.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.338e-05/0.3199, allocations: 3.938 kB / 428.4 MB, free: 10.82 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.004878/0.3248, allocations: 3.514 MB / 432 MB, free: 7.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.3249, allocations: 12.03 kB / 432 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005662/0.3254, allocations: 375.4 kB / 432.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003451/0.3289, allocations: 2.513 MB / 434.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.329, allocations: 36.94 kB / 434.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.3291, allocations: 51.91 kB / 434.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001286/0.3304, allocations: 0.7069 MB / 435.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.3304, allocations: 0 / 435.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.75e-05/0.3305, allocations: 19.98 kB / 435.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.963e-05/0.3306, allocations: 16 kB / 435.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/0.332, allocations: 0.7929 MB / 436.5 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004641/0.3367, allocations: 2.895 MB / 439.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.338, allocations: 0.7061 MB / 440.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000971/0.3389, allocations: 0.6509 MB / 440.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02807/0.367, allocations: 30.15 MB / 470.9 MB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007581/0.3678, allocations: 372.1 kB / 471.2 MB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.515e-06/0.3678, allocations: 3.938 kB / 471.2 MB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003059/0.3709, allocations: 1.395 MB / 472.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.3709, allocations: 63.34 kB / 472.7 MB, free: 10.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003221/0.3742, allocations: 2.809 MB / 475.5 MB, free: 7.332 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.819e-05/0.3743, allocations: 37.7 kB / 475.5 MB, free: 7.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.3755, allocations: 1.391 MB / 476.9 MB, free: 5.891 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.3757, allocations: 173.7 kB / 477.1 MB, free: 5.719 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003242/0.376, allocations: 226.1 kB / 477.3 MB, free: 5.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.3762, allocations: 333.9 kB / 477.6 MB, free: 5.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005595/0.3768, allocations: 237.9 kB / 477.9 MB, free: 4.926 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007794/0.3776, allocations: 0.5891 MB / 478.5 MB, free: 4.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001559/0.3791, allocations: 0.888 MB / 479.4 MB, free: 3.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.247e-06/0.3791, allocations: 4 kB / 479.4 MB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002282/0.3814, allocations: 1.287 MB / 480.6 MB, free: 1.801 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3815, allocations: 8 kB / 480.7 MB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/0.3816, allocations: 80 kB / 480.7 MB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005274/0.3821, allocations: 281.1 kB / 481 MB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/0.3827, allocations: 163.7 kB / 481.2 MB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009414/0.3836, allocations: 0.8841 MB / 482.1 MB, free: 376 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.3847, allocations: 107 kB / 482.2 MB, free: 268 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001118/0.3848, allocations: 64 kB / 482.2 MB, free: 204 kB / 398.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.0007555/0.3856, allocations: 417.5 kB / 482.6 MB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/0.386, allocations: 375.5 kB / 483 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002776/0.3887, allocations: 1.283 MB / 484.3 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.3888, allocations: 4 kB / 484.3 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.3888, allocations: 3.984 kB / 484.3 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3888, allocations: 3.938 kB / 484.3 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003428/0.3922, allocations: 2.205 MB / 486.5 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.954e-05/0.3923, allocations: 75.94 kB / 486.6 MB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.3927, allocations: 59.88 kB / 486.6 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000465/0.3931, allocations: 260.9 kB / 486.9 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.237e-05/0.3932, allocations: 32 kB / 486.9 MB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008663/0.3941, allocations: 0.8743 MB / 487.8 MB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.185e-05/0.3941, allocations: 4.031 kB / 487.8 MB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.3959, allocations: 1.125 MB / 488.9 MB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007645/0.3967, allocations: 472.4 kB / 489.4 MB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.397, allocations: 12 kB / 489.4 MB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006694/0.3977, allocations: 35.95 kB / 489.4 MB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.3979, allocations: 55.95 kB / 489.5 MB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.272e-05/0.3979, allocations: 43.98 kB / 489.5 MB, free: 8.699 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002349/0.4003, allocations: 1.832 MB / 491.4 MB, free: 6.863 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.4003, allocations: 0 / 491.4 MB, free: 6.863 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001293/0.4016, allocations: 0.5777 MB / 491.9 MB, free: 6.285 MB / 414.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.001134/0.4027, allocations: 0.7778 MB / 492.7 MB, free: 5.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.4045, allocations: 0.8461 MB / 493.6 MB, free: 4.633 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4046, allocations: 12 kB / 493.6 MB, free: 4.621 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009351/0.4055, allocations: 0.4924 MB / 494.1 MB, free: 4.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001839/0.4074, allocations: 0.5068 MB / 494.6 MB, free: 3.598 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005772/0.4131, allocations: 3.985 MB / 498.6 MB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/0.4143, allocations: 1.612 MB / 0.4884 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.4146, allocations: 175.4 kB / 0.4886 GB, free: 13.74 MB / 430.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4146, allocations: 0 / 0.4886 GB, free: 13.74 MB / 430.1 MB Notification: Performance of Templates: time 0.06679/0.4814, allocations: 48.7 MB / 0.5362 GB, free: 12.96 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches