Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Multivibrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator",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.001646/0.001646, allocations: 110.1 kB / 17.06 MB, free: 6.016 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.001851/0.001851, allocations: 191 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 47.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2768, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator): time 0.004049/0.2809, allocations: 2.606 MB / 402.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2822, allocations: 0.6583 MB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002722/0.2825, allocations: 7.938 kB / 403.5 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.2827, allocations: 43.58 kB / 403.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.283, allocations: 83.31 kB / 403.7 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002127/0.2833, allocations: 87.81 kB / 403.8 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.2837, allocations: 306.7 kB / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001944/0.2839, allocations: 88.94 kB / 404.1 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.284, allocations: 119.5 kB / 404.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.2842, allocations: 119.5 kB / 404.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.486e-05/0.2843, allocations: 28 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.29e-05/0.2843, allocations: 28 kB / 404.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.271e-05/0.2844, allocations: 59.75 kB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.2845, allocations: 131.4 kB / 404.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003282/0.2849, allocations: 289.9 kB / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2849, allocations: 0 / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2849, allocations: 0 / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.2849, allocations: 0 / 404.9 MB, free: 4.133 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000939/0.2858, allocations: 0.5721 MB / 405.5 MB, free: 3.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2859, allocations: 12.03 kB / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.229e-05/0.286, allocations: 62.67 kB / 405.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.286, allocations: 28.75 kB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.2864, allocations: 263.9 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.2864, allocations: 16.94 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.873e-05/0.2865, allocations: 24.38 kB / 405.9 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004248/0.2869, allocations: 221 kB / 406.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2869, allocations: 0 / 406.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.2869, allocations: 12 kB / 406.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.287, allocations: 4 kB / 406.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004054/0.2874, allocations: 198.1 kB / 406.3 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.2888, allocations: 0.8931 MB / 407.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005992/0.2894, allocations: 230.5 kB / 407.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003039/0.2897, allocations: 120.8 kB / 407.5 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.2897, allocations: 4 kB / 407.5 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.2897, allocations: 30.56 kB / 407.6 MB, free: 1.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2898, allocations: 3.938 kB / 407.6 MB, free: 1.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.001743/0.2915, allocations: 0.5616 MB / 408.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.2916, allocations: 55.34 kB / 408.2 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.2918, allocations: 223.1 kB / 408.4 MB, free: 392 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.2918, allocations: 29.7 kB / 408.4 MB, free: 356 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.2919, allocations: 176.1 kB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.842e-05/0.292, allocations: 51.58 kB / 408.7 MB, free: 124 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-05/0.292, allocations: 49.59 kB / 408.7 MB, free: 68 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2922, allocations: 326.8 kB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.2924, allocations: 72.81 kB / 409.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.2926, allocations: 117.9 kB / 409.2 MB, free: 15.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.2929, allocations: 177.9 kB / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2929, allocations: 0 / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001064/0.294, allocations: 338.2 kB / 409.7 MB, free: 14.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.294, allocations: 8 kB / 409.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.294, allocations: 0 / 409.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004677/0.2945, allocations: 80.83 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.2948, allocations: 39.92 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00297/0.2977, allocations: 2.025 MB / 411.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.2979, allocations: 27.94 kB / 411.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.2979, allocations: 12 kB / 411.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001329/0.2981, allocations: 140.5 kB / 412 MB, free: 12.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001073/0.2982, allocations: 101.8 kB / 412.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002629/0.2985, allocations: 152.6 kB / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.523e-06/0.2985, allocations: 0 / 412.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=25) (initialization_lambda0): time 0.0003284/0.2988, allocations: 230.2 kB / 412.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.2988, allocations: 4 kB / 412.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.2988, allocations: 4 kB / 412.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.424e-05/0.2989, allocations: 20.84 kB / 412.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.2991, allocations: 47.92 kB / 412.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009505/0.3, allocations: 1.414 MB / 414 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.3002, allocations: 12.02 kB / 414 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.3002, allocations: 16 kB / 414 MB, free: 10.33 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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.0001114/0.3003, allocations: 190 kB / 414.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.3004, allocations: 15.91 kB / 414.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.204e-05/0.3004, allocations: 29.45 kB / 414.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3004, allocations: 4 kB / 414.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.3004, allocations: 144 / 414.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.3005, allocations: 3.984 kB / 414.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.3019, allocations: 0.6272 MB / 414.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.302, allocations: 0 / 414.9 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.3022, allocations: 27.98 kB / 414.9 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003913/0.3026, allocations: 76.73 kB / 415 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3026, allocations: 7.938 kB / 415 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00361/0.3062, allocations: 1.923 MB / 416.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3062, allocations: 128 / 416.9 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.3077, allocations: 432.5 kB / 417.3 MB, free: 6.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/0.3078, allocations: 108.9 kB / 417.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.3079, allocations: 4.062 kB / 417.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.3082, allocations: 19.98 kB / 417.5 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.298e-05/0.3082, allocations: 7.984 kB / 417.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.3082, allocations: 4 kB / 417.5 MB, free: 6.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001907/0.3084, allocations: 176.5 kB / 417.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3084, allocations: 0 / 417.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005565/0.309, allocations: 115.8 kB / 417.8 MB, free: 6.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (c.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001156/0.3102, allocations: 0.9777 MB / 418.8 MB, free: 5.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.3113, allocations: 0.5426 MB / 419.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3114, allocations: 0 / 419.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002711/0.3116, allocations: 195.3 kB / 419.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.312, allocations: 44.53 kB / 419.5 MB, free: 4.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003924/0.3159, allocations: 2.648 MB / 422.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.3163, allocations: 0.7479 MB / 422.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.683e-05/0.3164, allocations: 25.94 kB / 422.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.543e-05/0.3165, allocations: 59.42 kB / 423 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3165, allocations: 0 / 423 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03594/0.3524, allocations: 5.444 MB / 428.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.69, allocations: 10.98 kB / 428.5 MB, free: 11.6 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Multivibrator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Multivibrator.pipe 2>&1)