Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 192.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001563/0.001563, allocations: 59.84 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3095/0.3111, allocations: 46.62 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008701/0.3199, allocations: 4.046 MB / 329.4 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004042/0.324, allocations: 1.104 MB / 330.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008436/0.3249, allocations: 9.062 kB / 330.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005804/0.3255, allocations: 103.9 kB / 330.6 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.3266, allocations: 163.1 kB / 330.7 MB, free: 13.47 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.3278, allocations: 283.1 kB / 331 MB, free: 13.21 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002127/0.3299, allocations: 0.9673 MB / 332 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008034/0.3307, allocations: 275.4 kB / 332.2 MB, free: 12.47 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.3318, allocations: 381.4 kB / 332.6 MB, free: 12.22 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.3332, allocations: 433.9 kB / 333 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003969/0.3336, allocations: 113.8 kB / 333.1 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004772/0.3341, allocations: 114 kB / 333.3 MB, free: 11.91 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004277/0.3346, allocations: 215 kB / 333.5 MB, free: 11.71 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001063/0.3356, allocations: 414.2 kB / 333.9 MB, free: 11.33 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.3376, allocations: 1.135 MB / 335 MB, free: 10.19 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.3377, allocations: 4 kB / 335 MB, free: 10.19 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3377, allocations: 0 / 335 MB, free: 10.19 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.703e-05/0.3377, allocations: 0 / 335 MB, free: 10.19 MB / 270.1 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.005611/0.3434, allocations: 1.184 MB / 336.2 MB, free: 8.938 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.3434, allocations: 12.03 kB / 336.2 MB, free: 8.926 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003588/0.3438, allocations: 76.08 kB / 336.3 MB, free: 8.852 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.345, allocations: 445.8 kB / 336.7 MB, free: 8.375 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.187e-05/0.3451, allocations: 37.69 kB / 336.8 MB, free: 8.34 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/0.3453, allocations: 52.38 kB / 336.8 MB, free: 8.289 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0039/0.3492, allocations: 0.929 MB / 337.7 MB, free: 7.293 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.3492, allocations: 4 kB / 337.7 MB, free: 7.289 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.3494, allocations: 24 kB / 337.8 MB, free: 7.266 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.415e-05/0.3494, allocations: 15.94 kB / 337.8 MB, free: 7.25 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005676/0.3551, allocations: 0.9757 MB / 338.8 MB, free: 6.273 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008472/0.3636, allocations: 3.06 MB / 341.8 MB, free: 3.082 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004407/0.3681, allocations: 0.9016 MB / 342.7 MB, free: 2.133 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002239/0.3703, allocations: 445.9 kB / 343.1 MB, free: 1.695 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.092e-05/0.3705, allocations: 8.422 kB / 343.2 MB, free: 1.688 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00229/0.3728, allocations: 465 kB / 343.6 MB, free: 1.219 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 4.779e-06/0.3728, allocations: 0 / 343.6 MB, free: 1.219 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.005652/0.3785, allocations: 1.092 MB / 344.7 MB, free: 124 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/0.3787, allocations: 269.4 kB / 345 MB, free: 15.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001326/0.38, allocations: 0.5018 MB / 345.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.3802, allocations: 37.7 kB / 345.5 MB, free: 15.24 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003959/0.3806, allocations: 343.5 kB / 345.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.3809, allocations: 173.6 kB / 346 MB, free: 14.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004249/0.3813, allocations: 138.5 kB / 346.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.3816, allocations: 366.8 kB / 346.5 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002151/0.3837, allocations: 405.6 kB / 346.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.386, allocations: 0.6506 MB / 347.5 MB, free: 13.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003779/0.3898, allocations: 0.974 MB / 348.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.3898, allocations: 3.984 kB / 348.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.005515/0.3954, allocations: 1.118 MB / 349.6 MB, free: 10.85 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.311e-05/0.3955, allocations: 63.41 kB / 349.7 MB, free: 10.78 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-05/0.3955, allocations: 7.984 kB / 349.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.062e-05/0.3956, allocations: 12 kB / 349.7 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.3973, allocations: 232 kB / 350 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.951e-05/0.3974, allocations: 11.98 kB / 350 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/0.3993, allocations: 171.1 kB / 350.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.3995, allocations: 36.06 kB / 350.2 MB, free: 10.32 MB / 286.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.0005905/0.4001, allocations: 217.6 kB / 350.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/0.4003, allocations: 59.34 kB / 350.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002684/0.4006, allocations: 69.58 kB / 350.5 MB, free: 9.969 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.4007, allocations: 7.938 kB / 350.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.4007, allocations: 0 / 350.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4007, allocations: 0 / 350.5 MB, free: 9.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006244/0.407, allocations: 1.65 MB / 352.2 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.407, allocations: 0 / 352.2 MB, free: 8.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.4086, allocations: 151.8 kB / 352.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.4086, allocations: 0 / 352.3 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.652e-05/0.4087, allocations: 15.98 kB / 352.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.514e-05/0.4087, allocations: 7.984 kB / 352.3 MB, free: 8.082 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.4087, allocations: 3.938 kB / 352.3 MB, free: 8.078 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005852/0.4146, allocations: 1.287 MB / 353.6 MB, free: 6.777 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003212/0.415, allocations: 144.2 kB / 353.8 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002251/0.4152, allocations: 8 kB / 353.8 MB, free: 6.609 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.4167, allocations: 103.9 kB / 353.9 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002326/0.4169, allocations: 52.38 kB / 353.9 MB, free: 6.457 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.285e-05/0.417, allocations: 19.98 kB / 353.9 MB, free: 6.438 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0009361/0.418, allocations: 350.9 kB / 354.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.418, allocations: 0 / 354.3 MB, free: 6.098 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001147/0.4192, allocations: 163.8 kB / 354.4 MB, free: 5.938 MB / 286.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.0002357/0.4194, allocations: 123.1 kB / 354.6 MB, free: 5.805 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.004933/0.4244, allocations: 1.02 MB / 355.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.4244, allocations: 0 / 355.6 MB, free: 4.758 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.4264, allocations: 418.7 kB / 356 MB, free: 4.348 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.4275, allocations: 96.78 kB / 356.1 MB, free: 4.254 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004164/0.4317, allocations: 1.168 MB / 357.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006759/0.4324, allocations: 0.8627 MB / 358.1 MB, free: 2.172 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0007688/0.4332, allocations: 76.66 kB / 358.2 MB, free: 2.094 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.4335, allocations: 51.44 kB / 358.2 MB, free: 2.043 MB / 286.1 MB Notification: Performance of SimCode: time 8.31e-07/0.4335, allocations: 3.938 kB / 358.3 MB, free: 2.039 MB / 286.1 MB Notification: Performance of Templates: time 0.02278/0.4563, allocations: 8.11 MB / 366.4 MB, free: 9.922 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)