Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001076/0.001076, allocations: 117.6 kB / 17.79 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 200.7 kB / 18.74 MB, free: 4.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 63.91 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.287, allocations: 50.55 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004832/0.2918, allocations: 2.763 MB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00153/0.2934, allocations: 0.709 MB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002959/0.2937, allocations: 7.938 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.294, allocations: 43.58 kB / 412.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.2943, allocations: 91.25 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003248/0.2946, allocations: 91.83 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.295, allocations: 362.5 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.2952, allocations: 84.7 kB / 412.9 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.2954, allocations: 135.5 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.2956, allocations: 155.3 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.719e-05/0.2956, allocations: 28 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.475e-05/0.2957, allocations: 28 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.207e-05/0.2958, allocations: 59.77 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.2959, allocations: 147.2 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003546/0.2963, allocations: 329.8 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2963, allocations: 4 kB / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.2963, allocations: 0 / 413.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.2963, allocations: 0 / 413.8 MB, free: 12.47 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001251/0.2976, allocations: 0.6532 MB / 414.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.2976, allocations: 8.031 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.391e-05/0.2977, allocations: 54.73 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.156e-05/0.2978, allocations: 32.75 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003872/0.2981, allocations: 279.8 kB / 414.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2982, allocations: 16.81 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.2982, allocations: 24.31 kB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000625/0.2989, allocations: 281.9 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2989, allocations: 0 / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.2989, allocations: 8 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.557e-06/0.2989, allocations: 8 kB / 415.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007743/0.2997, allocations: 245.6 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001494/0.3012, allocations: 0.9366 MB / 416.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008355/0.3021, allocations: 246.6 kB / 416.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003252/0.3024, allocations: 104.9 kB / 416.7 MB, free: 9.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.3024, allocations: 3.938 kB / 416.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000458/0.3029, allocations: 181.7 kB / 416.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.3029, allocations: 0 / 416.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.00228/0.3052, allocations: 0.6588 MB / 417.5 MB, free: 8.516 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.3053, allocations: 106.8 kB / 417.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002755/0.3056, allocations: 278.5 kB / 417.9 MB, free: 8.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.3056, allocations: 25.7 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.3057, allocations: 188.1 kB / 418.1 MB, free: 7.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.3058, allocations: 43.69 kB / 418.1 MB, free: 7.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.099e-05/0.3059, allocations: 45.66 kB / 418.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.306, allocations: 334.8 kB / 418.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003358/0.3063, allocations: 99.92 kB / 418.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.3067, allocations: 190.1 kB / 418.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000679/0.3074, allocations: 284.4 kB / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3074, allocations: 0 / 419.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001192/0.3086, allocations: 447.7 kB / 419.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.3087, allocations: 40.19 kB / 419.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3087, allocations: 4.062 kB / 419.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003914/0.3091, allocations: 80.8 kB / 419.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001969/0.3093, allocations: 39.91 kB / 419.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002874/0.3122, allocations: 2.013 MB / 421.7 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.3125, allocations: 47.91 kB / 421.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.3126, allocations: 12 kB / 421.7 MB, free: 3.992 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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 0.0001644/0.3127, allocations: 149.7 kB / 421.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.188e-05/0.3128, allocations: 23.8 kB / 421.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.726e-05/0.3128, allocations: 33.83 kB / 422 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3129, allocations: 0 / 422 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.3129, allocations: 0 / 422 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.3129, allocations: 7.984 kB / 422 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002663/0.3131, allocations: 289.5 kB / 422.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3132, allocations: 0 / 422.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/0.3133, allocations: 23.97 kB / 422.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002648/0.3136, allocations: 80.67 kB / 422.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.3136, allocations: 8 kB / 422.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002463/0.3161, allocations: 1.916 MB / 424.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3161, allocations: 3.984 kB / 424.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.3171, allocations: 365.5 kB / 424.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.016e-05/0.3172, allocations: 105 kB / 424.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.3173, allocations: 4 kB / 424.7 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.3175, allocations: 35.95 kB / 424.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.988e-05/0.3176, allocations: 15.98 kB / 424.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.3176, allocations: 7.938 kB / 424.8 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001793/0.3178, allocations: 201.9 kB / 425 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3178, allocations: 0 / 425 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.3182, allocations: 67.89 kB / 425.1 MB, free: 452 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 Backend phase and start with SimCode phase: time 0.001367/0.3196, allocations: 0.898 MB / 426 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.3209, allocations: 481.8 kB / 426.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3209, allocations: 0 / 426.4 MB, free: 15.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004669/0.3214, allocations: 238.6 kB / 426.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.3217, allocations: 47.47 kB / 426.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006921/0.3286, allocations: 3.422 MB / 430.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.329, allocations: 0.7479 MB / 430.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001121/0.3291, allocations: 22.3 kB / 430.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.3292, allocations: 75.41 kB / 431 MB, free: 10.29 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3292, allocations: 0 / 431 MB, free: 10.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.3573, allocations: 6.38 MB / 437.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.39, allocations: 10.12 kB / 437.4 MB, free: 4.117 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)