Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001318, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001312/0.001312, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.386/1.386, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2344/0.2363, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005626/0.242, allocations: 4.248 MB / 413.3 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.2443, allocations: 1.215 MB / 414.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002542/0.2446, allocations: 8 kB / 414.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.2449, allocations: 102.9 kB / 414.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003466/0.2453, allocations: 178.3 kB / 414.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006409/0.2459, allocations: 335.5 kB / 415.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001053/0.247, allocations: 1.097 MB / 416.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004109/0.2474, allocations: 278.6 kB / 416.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00044/0.2478, allocations: 406.8 kB / 416.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005166/0.2484, allocations: 470.2 kB / 417.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001456/0.2485, allocations: 116 kB / 417.5 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.2487, allocations: 120 kB / 417.6 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002012/0.2489, allocations: 223.3 kB / 417.8 MB, free: 8.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004191/0.2493, allocations: 450 kB / 418.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.2505, allocations: 1.225 MB / 419.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.2505, allocations: 0 / 419.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2505, allocations: 0 / 419.5 MB, free: 6.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.2505, allocations: 0 / 419.5 MB, free: 6.93 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002869/0.2534, allocations: 1.278 MB / 420.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.2535, allocations: 12.03 kB / 420.8 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/0.2536, allocations: 106.6 kB / 420.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.2538, allocations: 88.36 kB / 421 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000715/0.2545, allocations: 486 kB / 421.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/0.2546, allocations: 45.69 kB / 421.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001022/0.2547, allocations: 56.38 kB / 421.5 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.2569, allocations: 0.976 MB / 422.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.2569, allocations: 0 / 422.5 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/0.257, allocations: 28 kB / 422.6 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.257, allocations: 12 kB / 422.6 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002947/0.26, allocations: 1.007 MB / 423.6 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005078/0.2651, allocations: 3.204 MB / 426.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002384/0.2675, allocations: 0.9097 MB / 427.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001243/0.2688, allocations: 445 kB / 428.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.09e-05/0.2688, allocations: 20.48 kB / 428.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001241/0.2701, allocations: 465 kB / 428.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.2701, allocations: 0 / 428.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003366/0.2735, allocations: 1.096 MB / 429.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002147/0.2737, allocations: 380.2 kB / 430.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008892/0.2746, allocations: 0.5732 MB / 430.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.154e-05/0.2747, allocations: 41.7 kB / 430.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.275, allocations: 380.4 kB / 431 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.2752, allocations: 174.5 kB / 431.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/0.2754, allocations: 142.6 kB / 431.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.2756, allocations: 374.8 kB / 431.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.2769, allocations: 405.6 kB / 432.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.2783, allocations: 0.6733 MB / 432.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.2807, allocations: 0.9739 MB / 433.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.2807, allocations: 0 / 433.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00297/0.2837, allocations: 1.142 MB / 434.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.899e-05/0.2838, allocations: 63.39 kB / 435 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.2838, allocations: 8 kB / 435 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/0.2838, allocations: 8 kB / 435 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009932/0.2848, allocations: 223.9 kB / 435.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.109e-05/0.2848, allocations: 19.91 kB / 435.2 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.2859, allocations: 191.2 kB / 435.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.764e-05/0.2859, allocations: 36 kB / 435.4 MB, free: 6.23 MB / 350.1 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 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003133/0.2863, allocations: 217.6 kB / 435.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.2864, allocations: 71.58 kB / 435.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001666/0.2865, allocations: 82.39 kB / 435.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.2865, allocations: 4 kB / 435.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.2866, allocations: 0 / 435.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.2866, allocations: 3.938 kB / 435.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.2899, allocations: 1.677 MB / 437.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.2899, allocations: 0 / 437.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007652/0.2907, allocations: 147.8 kB / 437.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.03e-05/0.2907, allocations: 7.984 kB / 437.6 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.001e-05/0.2908, allocations: 19.92 kB / 437.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.2908, allocations: 0 / 437.7 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2908, allocations: 3.938 kB / 437.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003369/0.2942, allocations: 1.303 MB / 439 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001461/0.2943, allocations: 148.6 kB / 439.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.2944, allocations: 19.98 kB / 439.1 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007493/0.2952, allocations: 103.9 kB / 439.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.2953, allocations: 52.31 kB / 439.3 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.2954, allocations: 8 kB / 439.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005918/0.296, allocations: 402.8 kB / 439.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.296, allocations: 4 kB / 439.7 MB, free: 1.875 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005914/0.2966, allocations: 183.8 kB / 439.9 MB, free: 1.695 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003737/0.3003, allocations: 1.863 MB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.303, allocations: 1.001 MB / 442.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.303, allocations: 0 / 442.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.3041, allocations: 410.2 kB / 443.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006389/0.3048, allocations: 106.2 kB / 443.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/0.3169, allocations: 6.464 MB / 449.7 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.3174, allocations: 0.8746 MB / 450.6 MB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004379/0.3179, allocations: 88.84 kB / 450.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004124/0.3183, allocations: 231.4 kB / 450.9 MB, free: 6.328 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3183, allocations: 0 / 450.9 MB, free: 6.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03925/0.3575, allocations: 14.43 MB / 465.3 MB, free: 8.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.312/9.67, allocations: 14.2 kB / 465.3 MB, free: 8.059 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate_res.csv --start-time 0 --stop-time 1e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-11 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)