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.001116/0.001116, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001127/0.001127, allocations: 183 kB / 18.66 MB, free: 4.41 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.35/1.35, 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.001284/0.001284, allocations: 56.25 kB / 328.1 MB, free: 3.766 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09454/0.09584, allocations: 46.62 MB / 374.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.00405/0.09993, allocations: 2.723 MB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.1013, allocations: 0.7174 MB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.1016, allocations: 7.938 kB / 378.1 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001826/0.1018, allocations: 39.58 kB / 378.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002555/0.102, allocations: 95.25 kB / 378.3 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.1023, allocations: 91.81 kB / 378.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004184/0.1028, allocations: 362.5 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.103, allocations: 88.67 kB / 378.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.1032, allocations: 135.4 kB / 378.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.1034, allocations: 151.4 kB / 379.1 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.1034, allocations: 28 kB / 379.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.489e-05/0.1035, allocations: 32 kB / 379.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-05/0.1036, allocations: 67.69 kB / 379.2 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001464/0.1037, allocations: 143.3 kB / 379.3 MB, free: 364 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.1041, allocations: 326.7 kB / 379.7 MB, free: 36 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1041, allocations: 4 kB / 379.7 MB, free: 32 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1041, allocations: 0 / 379.7 MB, free: 32 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1041, allocations: 7.922 kB / 379.7 MB, free: 24 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.1645/0.2687, allocations: 0.6407 MB / 380.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.2687, allocations: 8.25 kB / 380.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.887e-05/0.2688, allocations: 56.52 kB / 380.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.832e-05/0.2689, allocations: 33.53 kB / 380.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003421/0.2692, allocations: 289.8 kB / 380.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.2692, allocations: 15.88 kB / 380.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.2693, allocations: 21.7 kB / 380.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.2699, allocations: 246.2 kB / 381 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.2699, allocations: 3.938 kB / 381 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.2699, allocations: 10.58 kB / 381 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.2699, allocations: 4.125 kB / 381 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007116/0.2707, allocations: 244.8 kB / 381.2 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.2721, allocations: 0.8671 MB / 382.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/0.273, allocations: 237.9 kB / 382.3 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003847/0.2734, allocations: 101.6 kB / 382.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.2734, allocations: 1.375 kB / 382.4 MB, free: 12.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000513/0.2739, allocations: 185.2 kB / 382.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.364e-06/0.274, allocations: 0 / 382.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002456/0.2764, allocations: 0.6764 MB / 383.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.2765, allocations: 110.5 kB / 383.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002645/0.2767, allocations: 272.1 kB / 383.7 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.2768, allocations: 32 kB / 383.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.2769, allocations: 181.8 kB / 383.9 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.2769, allocations: 41.41 kB / 383.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.277, allocations: 45.58 kB / 383.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.62e-05/0.277, allocations: 336 kB / 384.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003512/0.2774, allocations: 108.4 kB / 384.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/0.2778, allocations: 181.1 kB / 384.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006618/0.2785, allocations: 277.8 kB / 384.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.2785, allocations: 5.219 kB / 384.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001199/0.2797, allocations: 445.4 kB / 385.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.815e-05/0.2797, allocations: 41.58 kB / 385.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2797, allocations: 2.844 kB / 385.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003659/0.2801, allocations: 74.06 kB / 385.4 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.2803, allocations: 49.75 kB / 385.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002583/0.2829, allocations: 2.012 MB / 387.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/0.2833, allocations: 54.31 kB / 387.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.2833, allocations: 8.547 kB / 387.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003127/0.2836, allocations: 178.7 kB / 387.7 MB, free: 8.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002648/0.2839, allocations: 160 kB / 387.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000491/0.2844, allocations: 242.4 kB / 388.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.826e-06/0.2844, allocations: 1.219 kB / 388.1 MB, free: 8.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0007293/0.2852, allocations: 336.6 kB / 388.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.2852, allocations: 37.28 kB / 388.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.2852, allocations: 3.125 kB / 388.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.03e-05/0.2853, allocations: 31.02 kB / 388.5 MB, free: 8.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.2855, allocations: 47.73 kB / 388.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006339/0.2862, allocations: 1.413 MB / 389.9 MB, free: 6.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.2865, allocations: 51.44 kB / 390 MB, free: 6.691 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.2865, allocations: 7.938 kB / 390 MB, free: 6.691 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 9.421e-05/0.2866, allocations: 191.8 kB / 390.2 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.2867, allocations: 27.03 kB / 390.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.2867, allocations: 26.23 kB / 390.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2867, allocations: 2.219 kB / 390.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.2867, allocations: 9.062 kB / 390.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.2867, allocations: 2 kB / 390.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.287, allocations: 296.8 kB / 390.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.287, allocations: 0 / 390.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.2871, allocations: 21.53 kB / 390.6 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000265/0.2874, allocations: 80 kB / 390.6 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.2874, allocations: 3.188 kB / 390.6 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00206/0.2895, allocations: 1.913 MB / 392.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.2895, allocations: 0.7031 kB / 392.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2906, allocations: 368.1 kB / 392.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.2907, allocations: 104.9 kB / 393 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.2907, allocations: 10.3 kB / 393 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002621/0.291, allocations: 36.09 kB / 393.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.842e-05/0.2911, allocations: 19.77 kB / 393.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.2911, allocations: 9.203 kB / 393.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001931/0.2913, allocations: 191.8 kB / 393.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2913, allocations: 0 / 393.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005941/0.2919, allocations: 123.6 kB / 393.4 MB, free: 4.145 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.001304/0.2932, allocations: 0.8868 MB / 394.3 MB, free: 3.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.2949, allocations: 0.7667 MB / 395 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.295, allocations: 0.9375 kB / 395 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004341/0.2954, allocations: 233.7 kB / 395.3 MB, free: 2.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003456/0.2958, allocations: 50.61 kB / 395.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006998/0.3028, allocations: 3.446 MB / 398.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.303, allocations: 0.7481 MB / 399.5 MB, free: 252 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001628/0.3032, allocations: 33.02 kB / 399.5 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.3033, allocations: 77.05 kB / 399.6 MB, free: 184 kB / 318.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3033, allocations: 3.938 kB / 399.6 MB, free: 180 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.3342, allocations: 6.715 MB / 406.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.22, allocations: 21.23 kB / 406.4 MB, free: 13.5 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)