Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001518/0.001518, 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.001436/0.001436, allocations: 194.2 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.422/1.422, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001407/0.001407, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.243/0.2444, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005049/0.2495, allocations: 4.041 MB / 329.3 MB, free: 14.62 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.2514, allocations: 1.109 MB / 330.5 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000229/0.2516, allocations: 12.69 kB / 330.5 MB, free: 13.7 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002314/0.2519, allocations: 96.95 kB / 330.6 MB, free: 13.61 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002978/0.2522, allocations: 162.6 kB / 330.7 MB, free: 13.46 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.2527, allocations: 290.3 kB / 331 MB, free: 13.2 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009519/0.2537, allocations: 0.9609 MB / 332 MB, free: 12.61 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004777/0.2542, allocations: 278.2 kB / 332.2 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004481/0.2546, allocations: 382.8 kB / 332.6 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.2551, allocations: 437.3 kB / 333 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.2553, allocations: 113.8 kB / 333.2 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.2555, allocations: 113.6 kB / 333.3 MB, free: 11.89 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.2557, allocations: 214.3 kB / 333.5 MB, free: 11.7 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000335/0.256, allocations: 415.7 kB / 333.9 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008837/0.2569, allocations: 1.139 MB / 335 MB, free: 10.18 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2569, allocations: 0 / 335 MB, free: 10.18 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2569, allocations: 0 / 335 MB, free: 10.18 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.2569, allocations: 0 / 335 MB, free: 10.18 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.002741/0.2597, allocations: 1.184 MB / 336.2 MB, free: 8.93 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2597, allocations: 12.03 kB / 336.2 MB, free: 8.918 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.2599, allocations: 72.09 kB / 336.3 MB, free: 8.848 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005455/0.2604, allocations: 441.8 kB / 336.7 MB, free: 8.375 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.642e-05/0.2605, allocations: 45.69 kB / 336.8 MB, free: 8.332 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.2606, allocations: 52.38 kB / 336.8 MB, free: 8.281 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.2627, allocations: 0.929 MB / 337.7 MB, free: 7.285 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2627, allocations: 0 / 337.7 MB, free: 7.285 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.461e-05/0.2628, allocations: 24 kB / 337.8 MB, free: 7.262 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.2628, allocations: 15.94 kB / 337.8 MB, free: 7.246 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.2657, allocations: 0.9757 MB / 338.8 MB, free: 6.27 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004215/0.2699, allocations: 3.06 MB / 341.8 MB, free: 3.078 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.2722, allocations: 0.9093 MB / 342.7 MB, free: 2.121 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001156/0.2734, allocations: 437.9 kB / 343.1 MB, free: 1.691 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.52e-05/0.2734, allocations: 12.5 kB / 343.2 MB, free: 1.68 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.2747, allocations: 465 kB / 343.6 MB, free: 1.211 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 2.695e-06/0.2747, allocations: 0 / 343.6 MB, free: 1.211 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.003157/0.2779, allocations: 1.088 MB / 344.7 MB, free: 120 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.278, allocations: 269.4 kB / 345 MB, free: 15.79 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006408/0.2786, allocations: 0.5018 MB / 345.5 MB, free: 15.28 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.786e-05/0.2787, allocations: 37.7 kB / 345.5 MB, free: 15.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.2789, allocations: 343.5 kB / 345.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.2791, allocations: 173.6 kB / 346 MB, free: 14.72 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/0.2793, allocations: 138.5 kB / 346.1 MB, free: 14.58 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2795, allocations: 366.8 kB / 346.5 MB, free: 14.21 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.2807, allocations: 401.7 kB / 346.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.282, allocations: 0.6544 MB / 347.5 MB, free: 13.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/0.2843, allocations: 0.9701 MB / 348.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2843, allocations: 0 / 348.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002795/0.2871, allocations: 1.122 MB / 349.6 MB, free: 10.85 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.708e-05/0.2872, allocations: 75.33 kB / 349.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.2872, allocations: 4 kB / 349.7 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.2873, allocations: 12 kB / 349.7 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.2883, allocations: 224 kB / 349.9 MB, free: 10.53 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.2883, allocations: 15.98 kB / 350 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/0.2894, allocations: 171.1 kB / 350.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.325e-05/0.2894, allocations: 35.98 kB / 350.2 MB, free: 10.31 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.0002638/0.2897, allocations: 217.6 kB / 350.4 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.124e-05/0.2898, allocations: 59.34 kB / 350.4 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001484/0.29, allocations: 69.58 kB / 350.5 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.29, allocations: 7.938 kB / 350.5 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.335e-06/0.29, allocations: 0 / 350.5 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.29, allocations: 3.984 kB / 350.5 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003212/0.2932, allocations: 1.65 MB / 352.2 MB, free: 8.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2932, allocations: 0 / 352.2 MB, free: 8.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007805/0.294, allocations: 147.8 kB / 352.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.545e-06/0.2941, allocations: 4 kB / 352.3 MB, free: 8.098 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.2941, allocations: 15.98 kB / 352.3 MB, free: 8.082 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.2941, allocations: 0 / 352.3 MB, free: 8.082 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2941, allocations: 0 / 352.3 MB, free: 8.082 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003295/0.2974, allocations: 1.294 MB / 353.6 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.2976, allocations: 140.2 kB / 353.8 MB, free: 6.617 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.734e-05/0.2977, allocations: 12 kB / 353.8 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007652/0.2984, allocations: 107.9 kB / 353.9 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.2986, allocations: 52.38 kB / 353.9 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/0.2986, allocations: 15.98 kB / 353.9 MB, free: 6.434 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000484/0.2991, allocations: 354.9 kB / 354.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2991, allocations: 0 / 354.3 MB, free: 6.09 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006223/0.2998, allocations: 167.7 kB / 354.5 MB, free: 5.926 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.0001815/0.3, allocations: 111.2 kB / 354.6 MB, free: 5.805 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.3026, allocations: 1.024 MB / 355.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3026, allocations: 0 / 355.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.3037, allocations: 418.9 kB / 356 MB, free: 4.344 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005304/0.3042, allocations: 104.8 kB / 356.1 MB, free: 4.242 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.3063, allocations: 1.168 MB / 357.3 MB, free: 3.047 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.3067, allocations: 0.8588 MB / 358.1 MB, free: 2.164 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.3071, allocations: 80.66 kB / 358.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.3073, allocations: 51.44 kB / 358.3 MB, free: 2.031 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3073, allocations: 0 / 358.3 MB, free: 2.031 MB / 286.1 MB Notification: Performance of Templates: time 0.01245/0.3197, allocations: 8.106 MB / 366.4 MB, free: 9.918 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)