Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001026, allocations: 106.6 kB / 18.4 MB, free: 4.68 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.001233/0.001233, allocations: 190 kB / 19.34 MB, free: 3.754 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.227/1.227, allocations: 205.1 MB / 225.2 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.00118/0.00118, allocations: 59.91 kB / 329.3 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06922/0.07041, allocations: 46.6 MB / 375.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003286/0.0737, allocations: 2.71 MB / 378.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.07495, allocations: 0.7212 MB / 379.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.07511, allocations: 4 kB / 379.3 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.07526, allocations: 43.56 kB / 379.3 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.07548, allocations: 99.19 kB / 379.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002653/0.07575, allocations: 95.81 kB / 379.5 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003772/0.07614, allocations: 358.5 kB / 379.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.07631, allocations: 80.7 kB / 380 MB, free: 424 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.0765, allocations: 139.5 kB / 380.1 MB, free: 284 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.07668, allocations: 147.3 kB / 380.2 MB, free: 136 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.572e-05/0.07675, allocations: 28 kB / 380.3 MB, free: 108 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.197e-05/0.07681, allocations: 32 kB / 380.3 MB, free: 76 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.291e-05/0.07687, allocations: 71.69 kB / 380.4 MB, free: 4 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1315/0.2084, allocations: 138.6 kB / 380.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.2087, allocations: 324 kB / 380.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.2087, allocations: 0 / 380.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2088, allocations: 1.375 kB / 380.8 MB, free: 10.69 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.2088, allocations: 0 / 380.8 MB, free: 10.69 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001094/0.2099, allocations: 0.6461 MB / 381.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.2099, allocations: 8.875 kB / 381.5 MB, free: 10.22 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.008e-05/0.21, allocations: 32.62 kB / 381.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.2103, allocations: 279.9 kB / 381.8 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.2103, allocations: 16.66 kB / 381.8 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.449e-05/0.2104, allocations: 19.81 kB / 381.8 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006078/0.211, allocations: 244.1 kB / 382.1 MB, free: 9.938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.211, allocations: 9.75 kB / 382.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.675e-05/0.211, allocations: 10.03 kB / 382.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.211, allocations: 5.5 kB / 382.1 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007358/0.2118, allocations: 243 kB / 382.3 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.2132, allocations: 0.8681 MB / 383.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008415/0.2141, allocations: 241.7 kB / 383.4 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.2144, allocations: 101 kB / 383.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.2145, allocations: 2.391 kB / 383.5 MB, free: 9.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004496/0.2149, allocations: 179.2 kB / 383.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.813e-06/0.2149, allocations: 5.547 kB / 383.7 MB, free: 9.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002439/0.2174, allocations: 0.6707 MB / 384.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.2174, allocations: 116.4 kB / 384.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002344/0.2176, allocations: 264.9 kB / 384.7 MB, free: 9.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.2177, allocations: 30.58 kB / 384.8 MB, free: 8.984 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.489e-05/0.2178, allocations: 178.5 kB / 384.9 MB, free: 8.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.2178, allocations: 41.25 kB / 385 MB, free: 8.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.971e-05/0.2179, allocations: 47.55 kB / 385 MB, free: 8.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.575e-05/0.2179, allocations: 332.1 kB / 385.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.2183, allocations: 106.2 kB / 385.5 MB, free: 8.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003659/0.2187, allocations: 165.2 kB / 385.6 MB, free: 8.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006546/0.2193, allocations: 260.7 kB / 385.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2193, allocations: 0 / 385.9 MB, free: 8.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001218/0.2206, allocations: 438.5 kB / 386.3 MB, free: 8.125 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.2206, allocations: 33.86 kB / 386.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2206, allocations: 1.531 kB / 386.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/0.221, allocations: 82.14 kB / 386.4 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001918/0.2212, allocations: 35.05 kB / 386.5 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/0.2235, allocations: 1.968 MB / 388.4 MB, free: 6.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.2238, allocations: 45.3 kB / 388.5 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.2238, allocations: 10.5 kB / 388.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003128/0.2241, allocations: 177.6 kB / 388.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000276/0.2244, allocations: 143.9 kB / 388.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004744/0.2249, allocations: 227.5 kB / 389 MB, free: 6.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.303e-06/0.2249, allocations: 0 / 389 MB, free: 6.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0006901/0.2256, allocations: 313.3 kB / 389.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.2256, allocations: 42.2 kB / 389.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-06/0.2257, allocations: 2.125 kB / 389.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.513e-05/0.2257, allocations: 33.86 kB / 389.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.2259, allocations: 38.73 kB / 389.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000749/0.2267, allocations: 1.617 MB / 391.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.227, allocations: 47.77 kB / 391.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.2271, allocations: 6.594 kB / 391.1 MB, free: 4.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/0.2271, allocations: 203.1 kB / 391.3 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.2272, allocations: 23.11 kB / 391.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.19e-05/0.2272, allocations: 27.23 kB / 391.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2272, allocations: 1.781 kB / 391.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2272, allocations: 2.625 kB / 391.4 MB, free: 4.023 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.2273, allocations: 97.47 kB / 391.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.2273, allocations: 9.859 kB / 391.5 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.2276, allocations: 33.89 kB / 391.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.099e-05/0.2277, allocations: 24.14 kB / 391.5 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001323/0.229, allocations: 431.2 kB / 391.9 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001027/0.2301, allocations: 0.4972 MB / 392.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003287/0.2304, allocations: 93.92 kB / 392.5 MB, free: 3.422 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001616/0.2306, allocations: 193.9 kB / 392.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of Backend: time 3.21e-07/0.2306, allocations: 0 / 392.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.2319, allocations: 0.6801 MB / 393.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of SimCode: time 0.0007416/0.2326, allocations: 0.9138 MB / 394.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of Templates: time 0.008287/0.2409, allocations: 4.726 MB / 399 MB, free: 1.336 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1)