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.001302/0.001302, allocations: 118.8 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001783/0.001783, allocations: 67.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2562, allocations: 50.54 MB / 408.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003807/0.26, allocations: 2.768 MB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.2613, allocations: 0.7012 MB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001468/0.2615, allocations: 7.938 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.2616, allocations: 43.58 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.2619, allocations: 87.25 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002888/0.2622, allocations: 99.81 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004354/0.2626, allocations: 354.5 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.2628, allocations: 84.7 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002056/0.263, allocations: 135.5 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.2632, allocations: 151.3 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6e-05/0.2633, allocations: 32 kB / 413.2 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.24e-05/0.2634, allocations: 28 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.456e-05/0.2634, allocations: 63.77 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.2636, allocations: 151.2 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00037/0.264, allocations: 321.8 kB / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.264, allocations: 0 / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.264, allocations: 0 / 413.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.264, allocations: 0 / 413.8 MB, free: 12.45 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.001276/0.2653, allocations: 0.6611 MB / 414.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2653, allocations: 8.031 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.165e-05/0.2654, allocations: 54.73 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.723e-05/0.2655, allocations: 28.75 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.2659, allocations: 287.7 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.2659, allocations: 16.81 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.266, allocations: 24.36 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006147/0.2666, allocations: 277.9 kB / 415.1 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.2666, allocations: 7.984 kB / 415.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.817e-05/0.2666, allocations: 12 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.2666, allocations: 4 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007199/0.2674, allocations: 245.5 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.269, allocations: 0.9328 MB / 416.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007735/0.2698, allocations: 242.6 kB / 416.6 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.2701, allocations: 101 kB / 416.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.2701, allocations: 7.938 kB / 416.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004467/0.2706, allocations: 185.4 kB / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.412e-06/0.2706, allocations: 0 / 416.9 MB, free: 9.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.002193/0.2728, allocations: 0.6513 MB / 417.5 MB, free: 8.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.2729, allocations: 106.8 kB / 417.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003055/0.2732, allocations: 286.4 kB / 417.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.2732, allocations: 25.7 kB / 417.9 MB, free: 8.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2734, allocations: 184.1 kB / 418.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.006e-05/0.2734, allocations: 39.69 kB / 418.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.464e-05/0.2735, allocations: 49.66 kB / 418.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.2737, allocations: 334.8 kB / 418.5 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.274, allocations: 95.91 kB / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.2744, allocations: 190.1 kB / 418.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006581/0.275, allocations: 292.4 kB / 419.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2751, allocations: 0 / 419.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001172/0.2762, allocations: 447.7 kB / 419.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.2763, allocations: 32.2 kB / 419.5 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.2763, allocations: 7.984 kB / 419.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003557/0.2767, allocations: 80.86 kB / 419.6 MB, free: 6.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.2769, allocations: 43.91 kB / 419.7 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/0.2797, allocations: 2.005 MB / 421.7 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003225/0.28, allocations: 51.95 kB / 421.7 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.698e-05/0.2801, allocations: 12 kB / 421.7 MB, free: 3.969 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.0001507/0.2802, allocations: 145.7 kB / 421.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.326e-05/0.2803, allocations: 27.8 kB / 421.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.2804, allocations: 25.83 kB / 421.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2804, allocations: 4 kB / 421.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.2804, allocations: 0 / 421.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2804, allocations: 4 kB / 421.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.2807, allocations: 293.4 kB / 422.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2807, allocations: 4 kB / 422.2 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.2808, allocations: 23.91 kB / 422.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002622/0.2811, allocations: 84.67 kB / 422.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.2811, allocations: 4 kB / 422.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002484/0.2836, allocations: 1.92 MB / 424.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2836, allocations: 0 / 424.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.2847, allocations: 361.5 kB / 424.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.315e-05/0.2848, allocations: 101 kB / 424.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.2848, allocations: 4 kB / 424.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.2851, allocations: 35.95 kB / 424.8 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/0.2852, allocations: 23.92 kB / 424.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.2852, allocations: 3.984 kB / 424.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001941/0.2854, allocations: 194 kB / 425 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2854, allocations: 0 / 425 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003897/0.2858, allocations: 71.89 kB / 425 MB, free: 436 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.001353/0.2871, allocations: 0.8936 MB / 425.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.2884, allocations: 489.8 kB / 426.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2884, allocations: 0 / 426.4 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004682/0.2889, allocations: 231 kB / 426.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.2892, allocations: 51.52 kB / 426.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006881/0.2961, allocations: 3.418 MB / 430.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003589/0.2965, allocations: 0.7518 MB / 430.9 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001099/0.2966, allocations: 30.22 kB / 430.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.2967, allocations: 75.42 kB / 431 MB, free: 10.27 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2967, allocations: 0 / 431 MB, free: 10.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03454/0.3313, allocations: 6.373 MB / 437.3 MB, free: 4.102 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.02, allocations: 9.125 kB / 437.3 MB, free: 4.102 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)