Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007881/0.0007881, allocations: 177 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.198/1.198, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007069/0.0007068, allocations: 97.38 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002167/0.0002167, allocations: 7.938 kB / 354.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1875, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.00714/0.1947, allocations: 12.41 MB / 417 MB, free: 18.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.2109, allocations: 20.65 MB / 437.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001396/0.2123, allocations: 67.44 kB / 437.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002465/0.2148, allocations: 0.9996 MB / 438.7 MB, free: 12.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005543/0.2203, allocations: 1.892 MB / 440.6 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003936/0.2243, allocations: 1.192 MB / 441.8 MB, free: 9.648 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008324/0.2326, allocations: 6.082 MB / 447.9 MB, free: 3.547 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005598/0.2332, allocations: 408.7 kB / 448.3 MB, free: 3.113 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.2344, allocations: 0.9792 MB / 449.2 MB, free: 2.129 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000888/0.2353, allocations: 1.017 MB / 450.3 MB, free: 1.105 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.2354, allocations: 40 kB / 450.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.2388, allocations: 1.334 MB / 451.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002495/0.239, allocations: 277.8 kB / 451.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001033/0.2401, allocations: 1.29 MB / 453.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003537/0.2436, allocations: 3.486 MB / 456.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2436, allocations: 0 / 456.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2436, allocations: 0 / 456.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.263e-05/0.2437, allocations: 0 / 456.7 MB, free: 10.65 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.003927/0.2476, allocations: 3.069 MB / 459.7 MB, free: 7.508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2477, allocations: 12.03 kB / 459.8 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.248, allocations: 371.5 kB / 460.1 MB, free: 7.129 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/0.2512, allocations: 2.524 MB / 462.6 MB, free: 4.527 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.2512, allocations: 33 kB / 462.7 MB, free: 4.496 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.2513, allocations: 51.89 kB / 462.7 MB, free: 4.445 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.2525, allocations: 0.7187 MB / 463.4 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2525, allocations: 4 kB / 463.4 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.87e-05/0.2526, allocations: 19.94 kB / 463.5 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.008e-05/0.2526, allocations: 27.97 kB / 463.5 MB, free: 3.672 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001436/0.2541, allocations: 0.8242 MB / 464.3 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004082/0.2582, allocations: 2.911 MB / 467.2 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2593, allocations: 0.7366 MB / 468 MB, free: 15.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009371/0.2603, allocations: 0.6705 MB / 468.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02539/0.2857, allocations: 30.11 MB / 498.7 MB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007133/0.2865, allocations: 393.4 kB / 499.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.544e-06/0.2865, allocations: 0 / 499.1 MB, free: 11.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002871/0.2894, allocations: 1.446 MB / 0.4888 GB, free: 10.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.2894, allocations: 67.34 kB / 0.4889 GB, free: 10.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002872/0.2923, allocations: 2.764 MB / 0.4916 GB, free: 7.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.2923, allocations: 33.7 kB / 0.4916 GB, free: 7.441 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.2933, allocations: 1.383 MB / 0.493 GB, free: 6.051 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.2935, allocations: 177.7 kB / 0.4932 GB, free: 5.875 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.2935, allocations: 12 kB / 0.4932 GB, free: 5.863 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.2936, allocations: 337.9 kB / 0.4935 GB, free: 5.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005399/0.2942, allocations: 257.9 kB / 0.4937 GB, free: 5.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007162/0.2949, allocations: 0.6008 MB / 0.4943 GB, free: 4.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/0.2962, allocations: 0.927 MB / 0.4952 GB, free: 3.414 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2962, allocations: 4 kB / 0.4952 GB, free: 3.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002051/0.2983, allocations: 1.311 MB / 0.4965 GB, free: 2.086 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.2983, allocations: 16.03 kB / 0.4965 GB, free: 2.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.584e-05/0.2984, allocations: 80 kB / 0.4966 GB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005172/0.2989, allocations: 273.8 kB / 0.4969 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/0.2995, allocations: 183.6 kB / 0.497 GB, free: 1.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008527/0.3003, allocations: 0.8871 MB / 0.4979 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008475/0.3012, allocations: 115 kB / 0.498 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.948e-05/0.3013, allocations: 71.88 kB / 0.4981 GB, free: 460 kB / 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 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * 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.0006239/0.3019, allocations: 421.5 kB / 0.4985 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1566/0.4586, allocations: 359.5 kB / 0.4988 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003823/0.4624, allocations: 1.299 MB / 0.5001 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.21e-05/0.4624, allocations: 4.812 kB / 0.5001 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.4625, allocations: 0.6562 kB / 0.5001 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.4625, allocations: 9.516 kB / 0.5001 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.466, allocations: 2.227 MB / 0.5023 GB, free: 99.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.195e-05/0.4661, allocations: 72.42 kB / 0.5024 GB, free: 99.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.4664, allocations: 77.25 kB / 0.5024 GB, free: 99.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003829/0.4668, allocations: 259.8 kB / 0.5027 GB, free: 99.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-05/0.4668, allocations: 35.59 kB / 0.5027 GB, free: 99.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006923/0.4675, allocations: 0.8573 MB / 0.5036 GB, free: 99.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.4675, allocations: 6.062 kB / 0.5036 GB, free: 99.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.469, allocations: 1.17 MB / 0.5047 GB, free: 98.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006/0.4696, allocations: 461.8 kB / 0.5051 GB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.4699, allocations: 13.52 kB / 0.5052 GB, free: 98.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000642/0.4706, allocations: 42.89 kB / 0.5052 GB, free: 98.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.4707, allocations: 60.25 kB / 0.5053 GB, free: 98.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.013e-05/0.4708, allocations: 36.88 kB / 0.5053 GB, free: 98.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00184/0.4727, allocations: 1.793 MB / 0.507 GB, free: 97.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4727, allocations: 0 / 0.507 GB, free: 97.53 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001262/0.474, allocations: 0.557 MB / 0.5076 GB, free: 97.51 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.0009376/0.4749, allocations: 0.7845 MB / 0.5084 GB, free: 97.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001472/0.4764, allocations: 0.8797 MB / 0.5092 GB, free: 96.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4764, allocations: 1.469 kB / 0.5092 GB, free: 96.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007397/0.4772, allocations: 0.502 MB / 0.5097 GB, free: 96.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/0.4795, allocations: 0.5762 MB / 0.5103 GB, free: 96.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004057/0.4835, allocations: 4.756 MB / 0.5149 GB, free: 91.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/0.4842, allocations: 1.6 MB / 0.5165 GB, free: 90.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001115/0.4853, allocations: 398.3 kB / 0.5169 GB, free: 89.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.4855, allocations: 159.4 kB / 0.517 GB, free: 89.8 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.4855, allocations: 0 / 0.517 GB, free: 89.8 MB / 378.7 MB Notification: Performance of Templates: time 0.04387/0.5294, allocations: 32.08 MB / 0.5483 GB, free: 57.95 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches