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.00162/0.00162, allocations: 113.4 kB / 17.72 MB, free: 5.445 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.001724/0.001724, allocations: 184.1 kB / 18.66 MB, free: 4.516 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.462/1.462, 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.001646/0.001646, allocations: 55.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08385/0.0855, 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.004227/0.08977, allocations: 2.711 MB / 377.4 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.09113, allocations: 0.7212 MB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.09132, allocations: 11.94 kB / 378.1 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.0915, allocations: 43.56 kB / 378.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001989/0.09171, allocations: 91.25 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.09201, allocations: 91.81 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000454/0.09247, allocations: 358.5 kB / 378.7 MB, free: 1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002299/0.09271, allocations: 84.7 kB / 378.8 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.09291, allocations: 135.5 kB / 378.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.09313, allocations: 147.3 kB / 379.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/0.0932, allocations: 32 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.608e-05/0.09326, allocations: 28 kB / 379.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.231e-05/0.09335, allocations: 71.69 kB / 379.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.09352, allocations: 143.2 kB / 379.3 MB, free: 380 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003749/0.0939, allocations: 326.7 kB / 379.6 MB, free: 52 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.09392, allocations: 4 kB / 379.6 MB, free: 48 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09392, allocations: 0 / 379.6 MB, free: 48 kB / 318.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.09394, allocations: 4 kB / 379.6 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.1562/0.2502, allocations: 0.6398 MB / 380.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.2503, allocations: 10.48 kB / 380.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.402e-05/0.2503, allocations: 57.02 kB / 380.4 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.668e-05/0.2504, allocations: 33.38 kB / 380.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.2508, allocations: 283.7 kB / 380.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.2509, allocations: 20.22 kB / 380.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.755e-05/0.2509, allocations: 21.25 kB / 380.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005931/0.2515, allocations: 243.6 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2515, allocations: 5.625 kB / 380.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.2516, allocations: 8.75 kB / 381 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.2516, allocations: 6 kB / 381 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007151/0.2523, allocations: 247 kB / 381.2 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.2537, allocations: 0.8656 MB / 382.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000928/0.2547, allocations: 242.4 kB / 382.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.255, allocations: 101.4 kB / 382.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.2551, allocations: 2.031 kB / 382.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004926/0.2556, allocations: 183.3 kB / 382.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.225e-06/0.2556, allocations: 0.625 kB / 382.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.002437/0.258, allocations: 0.6816 MB / 383.3 MB, free: 11.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.2581, allocations: 107 kB / 383.4 MB, free: 11.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002636/0.2583, allocations: 280.9 kB / 383.6 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.2584, allocations: 33 kB / 383.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.2585, allocations: 169.6 kB / 383.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.365e-05/0.2585, allocations: 52.17 kB / 383.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.2586, allocations: 46.11 kB / 383.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.344e-05/0.2587, allocations: 335.1 kB / 384.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003544/0.259, allocations: 107.5 kB / 384.4 MB, free: 10.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000372/0.2594, allocations: 182.4 kB / 384.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006768/0.2601, allocations: 281.6 kB / 384.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.2601, allocations: 5.188 kB / 384.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00127/0.2614, allocations: 440.4 kB / 385.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.648e-05/0.2614, allocations: 38.39 kB / 385.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2614, allocations: 2.406 kB / 385.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003986/0.2618, allocations: 78.52 kB / 385.4 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002009/0.2621, allocations: 49.62 kB / 385.4 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002735/0.2648, allocations: 2.017 MB / 387.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003607/0.2652, allocations: 50.38 kB / 387.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.2652, allocations: 8.234 kB / 387.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003349/0.2656, allocations: 182.1 kB / 387.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000279/0.2658, allocations: 157 kB / 387.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005136/0.2664, allocations: 244.8 kB / 388.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.2664, allocations: 1.125 kB / 388.1 MB, free: 8.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.000763/0.2671, allocations: 328.2 kB / 388.4 MB, free: 8.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.2672, allocations: 40.95 kB / 388.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2672, allocations: 2.5 kB / 388.4 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001111/0.2673, allocations: 28.05 kB / 388.5 MB, free: 8.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.2675, allocations: 45.33 kB / 388.5 MB, free: 8.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000737/0.2683, allocations: 1.418 MB / 389.9 MB, free: 6.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.2686, allocations: 44.06 kB / 390 MB, free: 6.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.2686, allocations: 13.02 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 0.0001001/0.2687, allocations: 195.5 kB / 390.2 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.2688, allocations: 23.94 kB / 390.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.622e-05/0.2688, allocations: 25.78 kB / 390.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2688, allocations: 2 kB / 390.2 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.2689, allocations: 10.08 kB / 390.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2689, allocations: 2.562 kB / 390.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002326/0.2691, allocations: 295.5 kB / 390.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.2691, allocations: 0 / 390.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.2692, allocations: 21.67 kB / 390.5 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002704/0.2695, allocations: 75.83 kB / 390.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.2696, allocations: 4.516 kB / 390.6 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002106/0.2717, allocations: 1.926 MB / 392.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2717, allocations: 0.5625 kB / 392.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.2728, allocations: 359.9 kB / 392.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.45e-05/0.2728, allocations: 105.4 kB / 393 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.2729, allocations: 6.859 kB / 393 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.2731, allocations: 32.55 kB / 393 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.86e-05/0.2732, allocations: 19.06 kB / 393.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.2733, allocations: 3.625 kB / 393.1 MB, free: 4.281 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000187/0.2734, allocations: 199.5 kB / 393.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2735, allocations: 1.031 kB / 393.3 MB, free: 4.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005903/0.2741, allocations: 123.4 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.001235/0.2753, allocations: 0.8898 MB / 394.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.277, allocations: 0.759 MB / 395 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.277, allocations: 2.219 kB / 395 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004574/0.2774, allocations: 237.5 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.000322/0.2778, allocations: 47.55 kB / 395.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00695/0.2847, allocations: 3.442 MB / 398.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.285, allocations: 0.7496 MB / 399.5 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.2851, allocations: 26.62 kB / 399.5 MB, free: 252 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.2852, allocations: 77.91 kB / 399.6 MB, free: 192 kB / 318.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2852, allocations: 7.875 kB / 399.6 MB, free: 184 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.3193, allocations: 6.717 MB / 406.3 MB, free: 13.53 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.51, allocations: 13.59 kB / 406.3 MB, free: 13.52 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)