Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.CharacteristicThyristors,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001229, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001391/0.001391, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.423/1.423, allocations: 227.7 MB / 247.2 MB, free: 10.26 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 71.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2797, allocations: 50.54 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006218/0.286, allocations: 4 MB / 413.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003295/0.2894, allocations: 1.605 MB / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004321/0.2899, allocations: 7.938 kB / 414.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008467/0.2907, allocations: 254.8 kB / 414.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008627/0.2916, allocations: 302.1 kB / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007472/0.2924, allocations: 266.6 kB / 415.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001045/0.2934, allocations: 0.7242 MB / 416.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.2937, allocations: 168.9 kB / 416.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004533/0.2942, allocations: 283 kB / 416.7 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.2946, allocations: 298.7 kB / 417 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.316e-05/0.2947, allocations: 52 kB / 417 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002567/0.295, allocations: 104 kB / 417.1 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.2951, allocations: 151.4 kB / 417.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003113/0.2955, allocations: 298.5 kB / 417.5 MB, free: 8.867 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009069/0.2964, allocations: 0.7225 MB / 418.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2964, allocations: 4 kB / 418.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2964, allocations: 0 / 418.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.2964, allocations: 0 / 418.3 MB, free: 8.141 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001766/0.2982, allocations: 0.968 MB / 419.2 MB, free: 7.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.2983, allocations: 8.031 kB / 419.3 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.29e-05/0.2984, allocations: 78.72 kB / 419.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002319/0.2986, allocations: 80.5 kB / 419.4 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006006/0.2992, allocations: 431.1 kB / 419.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.478e-05/0.2993, allocations: 33.31 kB / 419.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.064e-05/0.2993, allocations: 43.94 kB / 419.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007728/0.3001, allocations: 433.6 kB / 420.3 MB, free: 5.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.3001, allocations: 7.938 kB / 420.3 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.211e-05/0.3002, allocations: 16 kB / 420.3 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3002, allocations: 12 kB / 420.4 MB, free: 5.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006345/0.3008, allocations: 315.8 kB / 420.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.3034, allocations: 1.707 MB / 422.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007293/0.3041, allocations: 363.1 kB / 422.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.3045, allocations: 180.8 kB / 422.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.3046, allocations: 4 kB / 422.9 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004926/0.3051, allocations: 266.4 kB / 423.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.395e-06/0.3051, allocations: 0 / 423.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002342/0.3074, allocations: 1.026 MB / 424.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.3076, allocations: 191.8 kB / 424.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007662/0.3083, allocations: 0.5019 MB / 424.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.331e-05/0.3084, allocations: 41.7 kB / 424.9 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002468/0.3087, allocations: 260.8 kB / 425.2 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.3088, allocations: 130.9 kB / 425.3 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.309, allocations: 74.14 kB / 425.4 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.3092, allocations: 362.7 kB / 425.7 MB, free: 244 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/0.3095, allocations: 124.8 kB / 425.9 MB, free: 120 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003729/0.3098, allocations: 221.2 kB / 426.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005167/0.3104, allocations: 261.2 kB / 426.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.3104, allocations: 4 kB / 426.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009319/0.3113, allocations: 481.2 kB / 426.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.3114, allocations: 4 kB / 426.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3114, allocations: 4 kB / 426.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005808/0.312, allocations: 159.4 kB / 427 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.3122, allocations: 47.84 kB / 427 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006163/0.3184, allocations: 6.648 MB / 433.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005432/0.319, allocations: 51.8 kB / 433.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.319, allocations: 8 kB / 433.7 MB, free: 7.629 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003462/0.3194, allocations: 196.1 kB / 433.9 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.899e-05/0.3195, allocations: 59.56 kB / 434 MB, free: 7.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.3196, allocations: 60.8 kB / 434 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3196, allocations: 4 kB / 434 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3196, allocations: 0 / 434 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3196, allocations: 3.984 kB / 434 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006357/0.3203, allocations: 0.4895 MB / 434.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3203, allocations: 4 kB / 434.5 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.3204, allocations: 31.92 kB / 434.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000471/0.3209, allocations: 163.3 kB / 434.7 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.321, allocations: 8 kB / 434.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00582/0.3268, allocations: 6.359 MB / 441.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.3268, allocations: 3.938 kB / 441.1 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.3281, allocations: 0.5037 MB / 441.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000315/0.3284, allocations: 160.6 kB / 441.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.362e-05/0.3285, allocations: 12 kB / 441.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.3288, allocations: 31.97 kB / 441.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.329, allocations: 59.86 kB / 441.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.329, allocations: 12 kB / 441.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000513/0.3296, allocations: 363.1 kB / 442.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3296, allocations: 0 / 442.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008502/0.3304, allocations: 179.7 kB / 442.4 MB, free: 14.27 MB / 366.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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002774/0.3332, allocations: 1.369 MB / 443.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.3346, allocations: 0.811 MB / 444.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3346, allocations: 0 / 444.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.3355, allocations: 0.6588 MB / 445.2 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.3362, allocations: 122.2 kB / 445.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006692/0.3429, allocations: 4.303 MB / 449.7 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/0.3435, allocations: 0.8634 MB / 450.5 MB, free: 6.008 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000268/0.3438, allocations: 52.16 kB / 450.6 MB, free: 5.957 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002557/0.344, allocations: 171.4 kB / 450.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3441, allocations: 0 / 450.7 MB, free: 5.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09432/0.4384, allocations: 14.55 MB / 465.3 MB, free: 7.539 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.84, allocations: 0 / 465.3 MB, free: 7.539 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)