Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_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.001211/0.001212, allocations: 118.8 kB / 17.79 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001319/0.001319, allocations: 197.2 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3018, allocations: 50.55 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005927/0.3078, allocations: 4.236 MB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002692/0.3106, allocations: 1.215 MB / 414.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006109/0.3112, allocations: 11.94 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004044/0.3117, allocations: 110.9 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006244/0.3123, allocations: 182.3 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008434/0.3132, allocations: 323.6 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.3146, allocations: 1.093 MB / 415.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004981/0.3151, allocations: 290.6 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006315/0.3158, allocations: 406.8 kB / 416.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007079/0.3165, allocations: 458.3 kB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002936/0.3168, allocations: 120 kB / 417.2 MB, free: 9.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.3171, allocations: 120 kB / 417.3 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.3173, allocations: 223.3 kB / 417.5 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005821/0.3179, allocations: 457.9 kB / 418 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001251/0.3192, allocations: 1.213 MB / 419.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.3192, allocations: 0 / 419.2 MB, free: 7.074 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.3192, allocations: 4 kB / 419.2 MB, free: 7.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.462e-05/0.3193, allocations: 0 / 419.2 MB, free: 7.07 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.00347/0.3227, allocations: 1.263 MB / 420.4 MB, free: 5.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.3228, allocations: 8.031 kB / 420.4 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001763/0.323, allocations: 102.7 kB / 420.5 MB, free: 5.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.3232, allocations: 84 kB / 420.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007802/0.324, allocations: 485.5 kB / 421.1 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.171e-05/0.324, allocations: 45.69 kB / 421.1 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.3242, allocations: 60.31 kB / 421.2 MB, free: 4.926 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002354/0.3265, allocations: 0.9799 MB / 422.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.3266, allocations: 0 / 422.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.891e-05/0.3266, allocations: 24 kB / 422.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.3267, allocations: 16 kB / 422.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003088/0.3298, allocations: 0.9991 MB / 423.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005595/0.3354, allocations: 3.195 MB / 426.4 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/0.3378, allocations: 0.919 MB / 427.3 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.3391, allocations: 445.8 kB / 427.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.808e-05/0.3392, allocations: 12.42 kB / 427.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001271/0.3405, allocations: 465.1 kB / 428.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.448e-06/0.3405, allocations: 0 / 428.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003337/0.3438, allocations: 1.099 MB / 429.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000171/0.344, allocations: 372.3 kB / 429.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008845/0.3449, allocations: 0.577 MB / 430.3 MB, free: 11.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.027e-05/0.345, allocations: 41.7 kB / 430.3 MB, free: 11.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002657/0.3453, allocations: 371.5 kB / 430.7 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.3455, allocations: 165.6 kB / 430.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002732/0.3458, allocations: 142.5 kB / 431 MB, free: 10.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3459, allocations: 374.8 kB / 431.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.3472, allocations: 401.7 kB / 431.7 MB, free: 10 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/0.3486, allocations: 0.6811 MB / 432.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002411/0.351, allocations: 0.97 MB / 433.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/0.351, allocations: 4 kB / 433.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003166/0.3542, allocations: 1.134 MB / 434.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.311e-05/0.3543, allocations: 63.41 kB / 434.6 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.3543, allocations: 8 kB / 434.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.576e-05/0.3544, allocations: 12 kB / 434.6 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.3555, allocations: 220 kB / 434.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.083e-05/0.3555, allocations: 15.94 kB / 434.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.3567, allocations: 187 kB / 435 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.798e-05/0.3568, allocations: 35.97 kB / 435.1 MB, free: 6.434 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.0003781/0.3571, allocations: 229.5 kB / 435.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.3573, allocations: 63.25 kB / 435.3 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.3575, allocations: 74.41 kB / 435.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.335e-06/0.3575, allocations: 8 kB / 435.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/0.3575, allocations: 0 / 435.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-06/0.3575, allocations: 3.984 kB / 435.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003765/0.3613, allocations: 1.685 MB / 437.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.3613, allocations: 0 / 437.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008304/0.3622, allocations: 155.7 kB / 437.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.3622, allocations: 0 / 437.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.987e-05/0.3623, allocations: 11.98 kB / 437.3 MB, free: 4.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.35e-05/0.3623, allocations: 4 kB / 437.3 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3623, allocations: 3.938 kB / 437.3 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003623/0.3659, allocations: 1.299 MB / 438.6 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002854/0.3663, allocations: 144.2 kB / 438.7 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.3664, allocations: 16 kB / 438.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000859/0.3673, allocations: 107.9 kB / 438.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.3675, allocations: 48.33 kB / 438.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.3676, allocations: 19.98 kB / 438.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008294/0.3684, allocations: 406.8 kB / 439.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3684, allocations: 0 / 439.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008282/0.3692, allocations: 179.7 kB / 439.5 MB, free: 1.895 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.004017/0.3733, allocations: 1.855 MB / 441.3 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002865/0.3762, allocations: 0.9937 MB / 442.3 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.3762, allocations: 4.062 kB / 442.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001156/0.3774, allocations: 410.1 kB / 442.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000799/0.3782, allocations: 106.1 kB / 442.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.3917, allocations: 6.449 MB / 449.3 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.3922, allocations: 0.8785 MB / 450.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000456/0.3926, allocations: 80.86 kB / 450.2 MB, free: 6.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/0.3931, allocations: 239.3 kB / 450.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3931, allocations: 0 / 450.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03865/0.4317, allocations: 14.72 MB / 465.2 MB, free: 7.961 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.785/9.216, allocations: 10.22 kB / 465.2 MB, free: 7.957 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)