Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.986/1.986, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003558/0.000356, allocations: 15.94 kB / 264.1 MB, free: 2.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3044/0.3048, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005396/0.3102, allocations: 3.358 MB / 311.9 MB, free: 9.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.3127, allocations: 1.112 MB / 313 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.313, allocations: 8 kB / 313 MB, free: 8.145 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3131, allocations: 71.44 kB / 313.1 MB, free: 8.074 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005357/0.3137, allocations: 183.4 kB / 313.3 MB, free: 7.895 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005895/0.3143, allocations: 175.7 kB / 313.5 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009593/0.3153, allocations: 0.552 MB / 314 MB, free: 7.168 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000454/0.3157, allocations: 203.9 kB / 314.2 MB, free: 6.965 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000418/0.3162, allocations: 295.1 kB / 314.5 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006129/0.3168, allocations: 366.5 kB / 314.8 MB, free: 6.316 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.317, allocations: 48 kB / 314.9 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.3171, allocations: 48 kB / 314.9 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001851/0.3173, allocations: 143.5 kB / 315.1 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.3175, allocations: 149.3 kB / 315.2 MB, free: 5.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001162/0.3187, allocations: 0.8657 MB / 316.1 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.3187, allocations: 0 / 316.1 MB, free: 5.062 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3187, allocations: 0 / 316.1 MB, free: 5.062 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.877e-06/0.3187, allocations: 0 / 316.1 MB, free: 5.062 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004498/0.3233, allocations: 1.153 MB / 317.2 MB, free: 3.844 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.3233, allocations: 8.031 kB / 317.3 MB, free: 3.836 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000213/0.3235, allocations: 98.52 kB / 317.4 MB, free: 3.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002144/0.3238, allocations: 75.06 kB / 317.4 MB, free: 3.656 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007792/0.3246, allocations: 428.9 kB / 317.8 MB, free: 3.195 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.577e-05/0.3246, allocations: 41.31 kB / 317.9 MB, free: 3.152 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.3248, allocations: 55.98 kB / 317.9 MB, free: 3.098 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003826/0.3287, allocations: 0.9993 MB / 318.9 MB, free: 2.035 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.3287, allocations: 0 / 318.9 MB, free: 2.035 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3288, allocations: 28 kB / 319 MB, free: 2.008 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.3289, allocations: 12 kB / 319 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005737/0.3346, allocations: 1.128 MB / 320.1 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007732/0.3424, allocations: 3.149 MB / 323.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004529/0.347, allocations: 1.022 MB / 324.3 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.686e-05/0.3471, allocations: 16.5 kB / 324.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002276/0.3493, allocations: 0.5165 MB / 324.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.537e-06/0.3494, allocations: 3.938 kB / 324.8 MB, free: 11.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.006256/0.3556, allocations: 1.26 MB / 326.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/0.3558, allocations: 265.5 kB / 326.3 MB, free: 10.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0011/0.3569, allocations: 0.5018 MB / 326.8 MB, free: 9.867 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.882e-05/0.357, allocations: 37.7 kB / 326.9 MB, free: 9.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003501/0.3574, allocations: 343.5 kB / 327.2 MB, free: 9.484 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/0.3576, allocations: 165.6 kB / 327.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-05/0.3577, allocations: 19.94 kB / 327.4 MB, free: 9.301 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.358, allocations: 362.8 kB / 327.7 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002368/0.3603, allocations: 461.7 kB / 328.2 MB, free: 8.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/0.363, allocations: 0.7042 MB / 328.9 MB, free: 7.672 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.3654, allocations: 0.5247 MB / 329.4 MB, free: 7.133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3654, allocations: 0 / 329.4 MB, free: 7.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005445/0.3709, allocations: 1.235 MB / 330.7 MB, free: 5.875 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.2e-05/0.371, allocations: 70.3 kB / 330.7 MB, free: 5.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.445e-05/0.371, allocations: 15.95 kB / 330.7 MB, free: 5.781 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.933e-05/0.371, allocations: 12 kB / 330.8 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002048/0.3731, allocations: 247.6 kB / 331 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.135e-05/0.3731, allocations: 8 kB / 331 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.3751, allocations: 215.1 kB / 331.2 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.3752, allocations: 32 kB / 331.2 MB, free: 5.277 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004763/0.3757, allocations: 223.5 kB / 331.5 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.3759, allocations: 55.34 kB / 331.5 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.3761, allocations: 65.58 kB / 331.6 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.3761, allocations: 7.953 kB / 331.6 MB, free: 4.922 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3761, allocations: 3.938 kB / 331.6 MB, free: 4.918 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.3762, allocations: 3.984 kB / 331.6 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005864/0.382, allocations: 1.755 MB / 333.4 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3821, allocations: 0 / 333.4 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.3837, allocations: 175.8 kB / 333.5 MB, free: 2.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.3837, allocations: 4 kB / 333.5 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.774e-05/0.3838, allocations: 15.98 kB / 333.5 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-06/0.3838, allocations: 8 kB / 333.6 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3838, allocations: 0 / 333.6 MB, free: 2.902 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006494/0.3903, allocations: 1.466 MB / 335 MB, free: 1.422 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.3905, allocations: 140.2 kB / 335.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.3907, allocations: 16 kB / 335.2 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.3922, allocations: 139.9 kB / 335.3 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.3925, allocations: 52.36 kB / 335.4 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.352e-05/0.3925, allocations: 19.98 kB / 335.4 MB, free: 1.039 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0008097/0.3934, allocations: 346.9 kB / 335.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.3934, allocations: 0 / 335.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008798/0.3943, allocations: 167.8 kB / 335.9 MB, free: 0.5391 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006934/0.4012, allocations: 2.031 MB / 337.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.004835/0.4061, allocations: 1.102 MB / 339 MB, free: 13.36 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.4061, allocations: 4 kB / 339 MB, free: 13.36 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.4083, allocations: 483 kB / 339.5 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007249/0.409, allocations: 73.88 kB / 339.6 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01465/0.4237, allocations: 4.326 MB / 343.9 MB, free: 8.344 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005959/0.4244, allocations: 0.8708 MB / 344.8 MB, free: 7.449 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0007943/0.4252, allocations: 80.59 kB / 344.8 MB, free: 7.371 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005982/0.4258, allocations: 207.4 kB / 345 MB, free: 7.172 MB / 282.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4258, allocations: 0 / 345 MB, free: 7.172 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1102/0.536, allocations: 11.89 MB / 356.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002764/0.5363, allocations: 174.5 kB / 357.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.033/3.57, allocations: 0 / 357.1 MB, free: 11.07 MB / 298.7 MB