Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001219/0.001219, allocations: 107.8 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 195.9 kB / 18 MB, free: 5.07 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.629/1.629, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.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.001152/0.001152, allocations: 51.94 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005633/0.1094, allocations: 4.045 MB / 378.5 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2277/0.3372, allocations: 1.114 MB / 379.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000397/0.3376, allocations: 12.12 kB / 379.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002964/0.338, allocations: 98.47 kB / 379.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003976/0.3384, allocations: 167.6 kB / 379.9 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006356/0.339, allocations: 272.5 kB / 380.2 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009231/0.34, allocations: 0.9739 MB / 381.2 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004092/0.3404, allocations: 277.4 kB / 381.4 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005202/0.3409, allocations: 381.7 kB / 381.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005401/0.3414, allocations: 439.5 kB / 382.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002577/0.3417, allocations: 113.4 kB / 382.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001962/0.3419, allocations: 113.7 kB / 382.4 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.3421, allocations: 209.7 kB / 382.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003729/0.3425, allocations: 425.9 kB / 383.1 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.3439, allocations: 1.137 MB / 384.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3439, allocations: 0.8906 kB / 384.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3439, allocations: 0 / 384.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.3439, allocations: 1.031 kB / 384.2 MB, free: 8.414 MB / 318.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.002692/0.3466, allocations: 1.207 MB / 385.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3467, allocations: 12.97 kB / 385.4 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.3468, allocations: 78.25 kB / 385.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005818/0.3474, allocations: 446.1 kB / 385.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.68e-05/0.3475, allocations: 46.2 kB / 386 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.575e-05/0.3476, allocations: 51.97 kB / 386 MB, free: 7.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002077/0.3497, allocations: 0.9282 MB / 387 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.119e-05/0.3497, allocations: 1.922 kB / 387 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.378e-05/0.3498, allocations: 22.66 kB / 387 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3498, allocations: 13.25 kB / 387 MB, free: 6.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002915/0.3527, allocations: 0.9765 MB / 388 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00449/0.3572, allocations: 3.067 MB / 391 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00227/0.3595, allocations: 0.9026 MB / 391.9 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.3607, allocations: 443.8 kB / 392.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/0.3608, allocations: 15.66 kB / 392.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001216/0.362, allocations: 465 kB / 392.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.625e-06/0.362, allocations: 0 / 392.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003536/0.3656, allocations: 1.087 MB / 393.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.3657, allocations: 274.7 kB / 394.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008702/0.3666, allocations: 0.4986 MB / 394.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.483e-05/0.3666, allocations: 42.17 kB / 394.7 MB, free: 2.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.3669, allocations: 346.8 kB / 395.1 MB, free: 2.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/0.367, allocations: 179.5 kB / 395.3 MB, free: 2.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.3673, allocations: 134.5 kB / 395.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.3674, allocations: 365.2 kB / 395.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.3686, allocations: 400.2 kB / 396.1 MB, free: 1.762 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.3697, allocations: 0.6538 MB / 396.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002122/0.3719, allocations: 0.9686 MB / 397.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.3719, allocations: 3.375 kB / 397.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002701/0.3746, allocations: 1.134 MB / 398.9 MB, free: 236 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.354e-05/0.3746, allocations: 61.78 kB / 399 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.3747, allocations: 10.23 kB / 399 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.051e-05/0.3747, allocations: 9.406 kB / 399 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009788/0.3757, allocations: 223.6 kB / 399.2 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.081e-05/0.3757, allocations: 21.48 kB / 399.2 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.3768, allocations: 179.5 kB / 399.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.959e-05/0.3769, allocations: 32.52 kB / 399.4 MB, free: 15.98 MB / 334.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.0003853/0.3773, allocations: 221.3 kB / 399.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.3774, allocations: 59.19 kB / 399.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001537/0.3776, allocations: 71.89 kB / 399.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.3776, allocations: 5 kB / 399.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.624e-05/0.3776, allocations: 11.81 kB / 399.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3777, allocations: 1.188 kB / 399.8 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/0.3811, allocations: 1.642 MB / 401.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3811, allocations: 3.938 kB / 401.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007404/0.3818, allocations: 153.1 kB / 401.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.3818, allocations: 1.062 kB / 401.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.3819, allocations: 12.33 kB / 401.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3819, allocations: 2.125 kB / 401.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3819, allocations: 0 / 401.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003351/0.3853, allocations: 1.29 MB / 402.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.3855, allocations: 143.3 kB / 403 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3856, allocations: 12.09 kB / 403 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007322/0.3863, allocations: 99.3 kB / 403.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.3865, allocations: 54.34 kB / 403.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.414e-05/0.3865, allocations: 17.7 kB / 403.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005584/0.3871, allocations: 348.3 kB / 403.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3871, allocations: 0 / 403.5 MB, free: 13.36 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007164/0.3878, allocations: 174 kB / 403.7 MB, free: 13.32 MB / 334.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.0001685/0.388, allocations: 121 kB / 403.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00261/0.3906, allocations: 0.9931 MB / 404.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.3907, allocations: 2.219 kB / 404.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.3918, allocations: 413 kB / 405.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006735/0.3925, allocations: 95.73 kB / 405.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002459/0.3949, allocations: 1.172 MB / 406.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.3954, allocations: 0.8678 MB / 407.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004314/0.3959, allocations: 74.39 kB / 407.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002092/0.3961, allocations: 52.33 kB / 407.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3961, allocations: 4 kB / 407.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of Templates: time 0.01575/0.4119, allocations: 8.228 MB / 415.7 MB, free: 4.543 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)