Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001608/0.001609, allocations: 112.4 kB / 17.73 MB, free: 5.355 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.002061/0.002061, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.39/1.39, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001309/0.001309, allocations: 51.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08232/0.08364, allocations: 46.62 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.004159/0.08785, allocations: 2.711 MB / 377.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001632/0.08951, allocations: 0.7212 MB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.08979, allocations: 7.938 kB / 378.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001784/0.09002, allocations: 43.58 kB / 378.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002707/0.0903, allocations: 91.23 kB / 378.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003302/0.09063, allocations: 95.83 kB / 378.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000497/0.09114, allocations: 362.4 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.09136, allocations: 80.72 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002124/0.0916, allocations: 131.5 kB / 378.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.09179, allocations: 155.3 kB / 379.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.592e-05/0.09184, allocations: 28 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.639e-05/0.09189, allocations: 32 kB / 379.1 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.138e-05/0.09196, allocations: 71.69 kB / 379.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001455/0.09211, allocations: 143.3 kB / 379.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.09246, allocations: 330.6 kB / 379.7 MB, free: 44 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.09247, allocations: 0 / 379.7 MB, free: 44 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.09248, allocations: 0 / 379.7 MB, free: 44 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.0925, allocations: 0 / 379.7 MB, free: 44 kB / 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.1613/0.2538, allocations: 0.6426 MB / 380.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2538, allocations: 9.625 kB / 380.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.548e-05/0.2539, allocations: 56.05 kB / 380.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.783e-05/0.254, allocations: 33.25 kB / 380.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.2543, allocations: 283.5 kB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.2543, allocations: 16.88 kB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.043e-05/0.2544, allocations: 20.97 kB / 380.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005794/0.255, allocations: 244.8 kB / 380.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.255, allocations: 5.469 kB / 381 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.255, allocations: 10.84 kB / 381 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.255, allocations: 5.219 kB / 381 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008464/0.2559, allocations: 245 kB / 381.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001623/0.2575, allocations: 0.8731 MB / 382.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.2586, allocations: 239.1 kB / 382.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003676/0.2589, allocations: 103.1 kB / 382.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.259, allocations: 6.125 kB / 382.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005653/0.2595, allocations: 179.9 kB / 382.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 3.065e-06/0.2596, allocations: 0 / 382.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002583/0.2622, allocations: 0.6776 MB / 383.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.2622, allocations: 110.6 kB / 383.4 MB, free: 11.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.2625, allocations: 275.9 kB / 383.7 MB, free: 11.58 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.2625, allocations: 28.55 kB / 383.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.2627, allocations: 174.8 kB / 383.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.2627, allocations: 52.48 kB / 383.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.747e-05/0.2628, allocations: 41.81 kB / 383.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2629, allocations: 340.1 kB / 384.3 MB, free: 11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004762/0.2634, allocations: 107.8 kB / 384.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004326/0.2638, allocations: 180.3 kB / 384.6 MB, free: 10.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007366/0.2646, allocations: 283.4 kB / 384.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.2646, allocations: 0 / 384.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00125/0.2659, allocations: 449.8 kB / 385.3 MB, free: 10.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.774e-05/0.266, allocations: 34.64 kB / 385.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.266, allocations: 1.625 kB / 385.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003509/0.2664, allocations: 82.55 kB / 385.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.2666, allocations: 42.62 kB / 385.4 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.2692, allocations: 2.019 MB / 387.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.2696, allocations: 46.44 kB / 387.5 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.2696, allocations: 11.5 kB / 387.5 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003079/0.2699, allocations: 183.2 kB / 387.7 MB, free: 8.648 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002636/0.2702, allocations: 156.1 kB / 387.8 MB, free: 8.531 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005248/0.2707, allocations: 246.1 kB / 388.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.756e-06/0.2707, allocations: 1.531 kB / 388.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007484/0.2715, allocations: 331.1 kB / 388.4 MB, free: 8.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.2715, allocations: 38.27 kB / 388.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2715, allocations: 2.281 kB / 388.4 MB, free: 8.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001018/0.2717, allocations: 27.45 kB / 388.5 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001905/0.2719, allocations: 48.52 kB / 388.5 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006645/0.2725, allocations: 1.417 MB / 389.9 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.2729, allocations: 45.23 kB / 390 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.2729, allocations: 11.52 kB / 390 MB, free: 6.711 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (20): * Single equations (assignments): 18 * 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.0001041/0.273, allocations: 195.4 kB / 390.2 MB, free: 6.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/0.2731, allocations: 23.52 kB / 390.2 MB, free: 6.508 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.658e-05/0.2731, allocations: 31.31 kB / 390.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2732, allocations: 1.094 kB / 390.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2732, allocations: 5.188 kB / 390.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2732, allocations: 1.266 kB / 390.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.2734, allocations: 292.1 kB / 390.5 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.2734, allocations: 0 / 390.5 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.2736, allocations: 26.17 kB / 390.6 MB, free: 6.242 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002663/0.2738, allocations: 75.31 kB / 390.6 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.2739, allocations: 6.359 kB / 390.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/0.2759, allocations: 1.92 MB / 392.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.276, allocations: 0 / 392.6 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.277, allocations: 368.5 kB / 392.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.599e-05/0.2771, allocations: 105 kB / 393 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.2771, allocations: 2.891 kB / 393 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.2774, allocations: 37 kB / 393.1 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.2775, allocations: 18.61 kB / 393.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/0.2776, allocations: 8.922 kB / 393.1 MB, free: 4.293 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.2778, allocations: 195.4 kB / 393.3 MB, free: 4.184 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2778, allocations: 0 / 393.3 MB, free: 4.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005605/0.2783, allocations: 123.8 kB / 393.4 MB, free: 4.16 MB / 318.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.001195/0.2795, allocations: 0.889 MB / 394.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.2813, allocations: 0.7632 MB / 395 MB, free: 3.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2813, allocations: 4.062 kB / 395 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005231/0.2818, allocations: 235.1 kB / 395.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.2822, allocations: 54.25 kB / 395.3 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006868/0.2891, allocations: 3.439 MB / 398.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001881/0.2893, allocations: 0.7482 MB / 399.5 MB, free: 272 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.2894, allocations: 25.94 kB / 399.5 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.2896, allocations: 73.97 kB / 399.6 MB, free: 208 kB / 318.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2896, allocations: 3.938 kB / 399.6 MB, free: 204 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03074/0.3203, allocations: 6.723 MB / 406.3 MB, free: 13.55 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.52, allocations: 13.19 kB / 406.4 MB, free: 13.54 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1)