Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.677/1.677, allocations: 171.2 MB / 186.1 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003727, allocations: 8 kB / 233.4 MB, free: 2.262 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.08497, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4106/0.4957, allocations: 70.06 MB / 342.2 MB, free: 3.188 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.496, allocations: 75.77 kB / 342.3 MB, free: 3.145 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04978/0.5458, allocations: 10.34 MB / 352.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.5458, allocations: 0 / 352.6 MB, free: 10.29 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.174e-05/0.5459, allocations: 15.94 kB / 352.6 MB, free: 10.28 MB / 282.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.004771/0.5507, allocations: 1.134 MB / 353.8 MB, free: 9.121 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.5508, allocations: 11.97 kB / 353.8 MB, free: 9.109 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003559/0.5511, allocations: 100.2 kB / 353.9 MB, free: 9.035 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.5514, allocations: 71.16 kB / 353.9 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008693/0.5522, allocations: 430.9 kB / 354.4 MB, free: 8.586 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.396e-05/0.5523, allocations: 47.11 kB / 354.4 MB, free: 8.559 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001686/0.5525, allocations: 57.98 kB / 354.5 MB, free: 8.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004042/0.5566, allocations: 0.9932 MB / 355.4 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.5567, allocations: 4 kB / 355.5 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.5568, allocations: 23.5 kB / 355.5 MB, free: 7.684 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.5568, allocations: 12 kB / 355.5 MB, free: 7.672 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005801/0.5626, allocations: 1.129 MB / 356.6 MB, free: 6.793 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007732/0.5704, allocations: 3.163 MB / 359.8 MB, free: 4.16 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00441/0.5749, allocations: 1.032 MB / 360.8 MB, free: 3.293 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.945e-05/0.575, allocations: 16.56 kB / 360.8 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002818/0.5779, allocations: 0.5086 MB / 361.3 MB, free: 2.859 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 4.999e-06/0.5779, allocations: 0 / 361.3 MB, free: 2.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=50): time 0.006254/0.5842, allocations: 1.267 MB / 362.6 MB, free: 1.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001955/0.5844, allocations: 269.3 kB / 362.9 MB, free: 1.52 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.5856, allocations: 453.6 kB / 363.3 MB, free: 1.164 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001978/0.5858, allocations: 39.52 kB / 363.3 MB, free: 1.129 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000348/0.5861, allocations: 336 kB / 363.7 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.5864, allocations: 166.3 kB / 363.8 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.756e-05/0.5865, allocations: 13.5 kB / 363.9 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002386/0.5867, allocations: 372 kB / 364.2 MB, free: 384 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/0.5891, allocations: 461.6 kB / 364.7 MB, free: 36 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/0.5919, allocations: 0.7049 MB / 365.4 MB, free: 15.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/0.5944, allocations: 0.524 MB / 365.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/0.5944, allocations: 0 / 365.9 MB, free: 14.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005706/0.6001, allocations: 1.243 MB / 367.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.437e-05/0.6003, allocations: 63.81 kB / 367.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.6003, allocations: 8 kB / 367.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.327e-05/0.6003, allocations: 12 kB / 367.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/0.6025, allocations: 254.5 kB / 367.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.975e-05/0.6026, allocations: 15.89 kB / 367.5 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/0.6047, allocations: 221.5 kB / 367.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.6049, allocations: 31.12 kB / 367.7 MB, free: 13.35 MB / 298.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.0005223/0.6054, allocations: 224.5 kB / 367.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.6056, allocations: 55.34 kB / 368 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002072/0.6058, allocations: 68.53 kB / 368.1 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.6059, allocations: 7.984 kB / 368.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.6059, allocations: 3.938 kB / 368.1 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.6059, allocations: 3.953 kB / 368.1 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005812/0.6117, allocations: 1.75 MB / 369.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.6118, allocations: 4 kB / 369.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001596/0.6134, allocations: 179.2 kB / 370 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.318e-06/0.6134, allocations: 0 / 370 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/0.6135, allocations: 14.73 kB / 370 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.817e-06/0.6135, allocations: 4 kB / 370 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.6135, allocations: 0 / 370 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006389/0.6199, allocations: 1.462 MB / 371.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.6202, allocations: 138.6 kB / 371.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002359/0.6205, allocations: 18.7 kB / 371.6 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.6221, allocations: 138.4 kB / 371.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.6224, allocations: 57.92 kB / 371.8 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.1e-05/0.6225, allocations: 22.61 kB / 371.9 MB, free: 10.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008636/0.6234, allocations: 344.7 kB / 372.2 MB, free: 9.773 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6234, allocations: 0 / 372.2 MB, free: 9.773 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009728/0.6244, allocations: 172.2 kB / 372.4 MB, free: 9.621 MB / 298.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.007014/0.6314, allocations: 2.027 MB / 374.4 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004972/0.6364, allocations: 1.111 MB / 375.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.6365, allocations: 4.062 kB / 375.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00227/0.6388, allocations: 468 kB / 376 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007977/0.6396, allocations: 89.94 kB / 376.1 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0163/0.6559, allocations: 8.343 MB / 384.4 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000548/0.6565, allocations: 0.8708 MB / 385.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008462/0.6574, allocations: 80.59 kB / 385.3 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006104/0.658, allocations: 203.4 kB / 385.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of SimCode: time 1.202e-06/0.658, allocations: 0 / 385.5 MB, free: 13.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05186/0.7099, allocations: 11.91 MB / 397.5 MB, free: 1.188 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003494/0.7103, allocations: 175.5 kB / 397.6 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.007/3.717, allocations: 0 / 397.6 MB, free: 0.9453 MB / 314.7 MB