Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008719/0.000872, allocations: 177.9 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.6 MB / 223.7 MB, free: 8.957 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006787/0.0006787, allocations: 96.08 kB / 272.1 MB, free: 8.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002169/0.0002169, allocations: 4 kB / 329 MB, free: 15.09 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1934, allocations: 47.58 MB / 376.6 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008345/0.2017, allocations: 11.83 MB / 388.4 MB, free: 36.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01553/0.2173, allocations: 19.73 MB / 408.2 MB, free: 16.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.2189, allocations: 63.44 kB / 408.2 MB, free: 16.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.221, allocations: 0.9722 MB / 409.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005118/0.2261, allocations: 1.864 MB / 411.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.2292, allocations: 1.152 MB / 412.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006755/0.236, allocations: 5.945 MB / 418.1 MB, free: 6.496 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004787/0.2365, allocations: 408.9 kB / 418.5 MB, free: 6.066 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008536/0.2373, allocations: 0.8781 MB / 419.4 MB, free: 5.184 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006736/0.238, allocations: 0.9935 MB / 420.4 MB, free: 4.184 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.2381, allocations: 40 kB / 420.5 MB, free: 4.145 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00287/0.241, allocations: 1.074 MB / 421.5 MB, free: 3.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002072/0.2412, allocations: 289.7 kB / 421.8 MB, free: 2.785 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000821/0.2421, allocations: 1.298 MB / 423.1 MB, free: 1.473 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00354/0.2456, allocations: 3.497 MB / 426.6 MB, free: 13.96 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2456, allocations: 7.938 kB / 426.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2457, allocations: 0 / 426.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.715e-05/0.2457, allocations: 4 kB / 426.6 MB, free: 13.95 MB / 314.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.004269/0.25, allocations: 3.088 MB / 429.7 MB, free: 10.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.25, allocations: 12.03 kB / 429.7 MB, free: 10.78 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003647/0.2504, allocations: 375.5 kB / 430.1 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003284/0.2537, allocations: 2.532 MB / 432.6 MB, free: 7.797 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.2537, allocations: 40.94 kB / 432.7 MB, free: 7.758 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.2539, allocations: 55.89 kB / 432.7 MB, free: 7.703 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.2552, allocations: 0.7187 MB / 433.4 MB, free: 6.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.2552, allocations: 4 kB / 433.4 MB, free: 6.977 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.2553, allocations: 20 kB / 433.5 MB, free: 6.957 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/0.2553, allocations: 19.98 kB / 433.5 MB, free: 6.938 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00148/0.2568, allocations: 0.8281 MB / 434.3 MB, free: 6.105 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004444/0.2613, allocations: 2.922 MB / 437.2 MB, free: 3.117 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.2626, allocations: 0.7406 MB / 438 MB, free: 2.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009914/0.2636, allocations: 0.6704 MB / 438.6 MB, free: 1.672 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02678/0.2904, allocations: 30.18 MB / 468.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007659/0.2912, allocations: 381.6 kB / 469.2 MB, free: 15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.234e-06/0.2912, allocations: 0 / 469.2 MB, free: 15 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.002973/0.2941, allocations: 1.462 MB / 470.7 MB, free: 13.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.2942, allocations: 67.34 kB / 470.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.2973, allocations: 2.777 MB / 473.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.604e-05/0.2974, allocations: 37.7 kB / 473.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.2986, allocations: 1.395 MB / 474.9 MB, free: 9.188 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.2987, allocations: 161.7 kB / 475.1 MB, free: 9.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.2988, allocations: 16 kB / 475.1 MB, free: 9.012 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.2989, allocations: 341.9 kB / 475.4 MB, free: 8.672 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005537/0.2995, allocations: 257.8 kB / 475.7 MB, free: 8.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007399/0.3002, allocations: 0.6125 MB / 476.3 MB, free: 7.645 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.3015, allocations: 0.9154 MB / 477.2 MB, free: 6.559 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.3015, allocations: 8 kB / 477.2 MB, free: 6.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00209/0.3036, allocations: 1.319 MB / 478.5 MB, free: 5.219 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3037, allocations: 8.625 kB / 478.5 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.994e-05/0.3038, allocations: 84 kB / 478.6 MB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005315/0.3043, allocations: 272.9 kB / 478.9 MB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005472/0.3049, allocations: 179.7 kB / 479.1 MB, free: 4.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009218/0.3058, allocations: 0.8772 MB / 480 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008926/0.3067, allocations: 126.9 kB / 480.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-05/0.3068, allocations: 68 kB / 480.1 MB, free: 3.59 MB / 362.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.0006173/0.3074, allocations: 417.6 kB / 480.5 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.3077, allocations: 367.5 kB / 480.9 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.3107, allocations: 1.314 MB / 482.2 MB, free: 1.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3107, allocations: 4 kB / 482.2 MB, free: 1.477 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3107, allocations: 7.984 kB / 482.2 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.3107, allocations: 7.984 kB / 482.2 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.3141, allocations: 2.232 MB / 484.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001002/0.3142, allocations: 79.92 kB / 484.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002983/0.3145, allocations: 67.89 kB / 484.6 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004608/0.315, allocations: 270.7 kB / 484.9 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.3151, allocations: 31.94 kB / 484.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008735/0.316, allocations: 0.8646 MB / 485.8 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.316, allocations: 7.969 kB / 485.8 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00181/0.3178, allocations: 1.168 MB / 487 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006538/0.3185, allocations: 472.3 kB / 487.4 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002891/0.3188, allocations: 12 kB / 487.4 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006541/0.3194, allocations: 47.95 kB / 487.5 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001547/0.3196, allocations: 55.95 kB / 487.5 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.41e-05/0.3197, allocations: 39.98 kB / 487.6 MB, free: 11.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002227/0.3219, allocations: 1.805 MB / 489.4 MB, free: 10.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3219, allocations: 0 / 489.4 MB, free: 10.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001223/0.3231, allocations: 0.5623 MB / 489.9 MB, free: 9.586 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.001054/0.3242, allocations: 0.7813 MB / 490.7 MB, free: 8.797 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.3259, allocations: 0.8774 MB / 491.6 MB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.326, allocations: 0 / 491.6 MB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008743/0.3268, allocations: 0.5163 MB / 492.1 MB, free: 7.355 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.3288, allocations: 489.6 kB / 492.6 MB, free: 6.871 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005585/0.3344, allocations: 4.793 MB / 497.4 MB, free: 2.035 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001055/0.3354, allocations: 1.605 MB / 499 MB, free: 412 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001212/0.3367, allocations: 391.1 kB / 499.4 MB, free: 16 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.3369, allocations: 163.4 kB / 499.5 MB, free: 15.85 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.3369, allocations: 0 / 499.5 MB, free: 15.85 MB / 394.7 MB Notification: Performance of Templates: time 0.1887/0.5256, allocations: 32.17 MB / 0.5192 GB, free: 119.6 MB / 394.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches