Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 202 kB / 18.74 MB, free: 4.332 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.396/1.396, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.003292/0.003292, allocations: 63.91 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2895, allocations: 50.55 MB / 409.1 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004604/0.2941, allocations: 2.94 MB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.2958, allocations: 0.7906 MB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002521/0.2961, allocations: 4 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.2963, allocations: 55.5 kB / 412.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002731/0.2966, allocations: 95.12 kB / 413 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.297, allocations: 119.7 kB / 413.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005225/0.2976, allocations: 410.2 kB / 413.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.2978, allocations: 139.2 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002851/0.2981, allocations: 151.5 kB / 413.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.2984, allocations: 163.2 kB / 413.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.818e-05/0.2985, allocations: 39.98 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001082/0.2986, allocations: 44 kB / 414 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.569e-05/0.2987, allocations: 75.75 kB / 414.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.2989, allocations: 179.1 kB / 414.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005054/0.2994, allocations: 441.3 kB / 414.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2994, allocations: 4 kB / 414.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2994, allocations: 0 / 414.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.2994, allocations: 3.938 kB / 414.7 MB, free: 11.71 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001124/0.3006, allocations: 0.6243 MB / 415.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.3006, allocations: 12.03 kB / 415.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.085e-05/0.3007, allocations: 58.73 kB / 415.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.3009, allocations: 52.62 kB / 415.4 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.3013, allocations: 292.9 kB / 415.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.3014, allocations: 20.94 kB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.708e-05/0.3014, allocations: 24.38 kB / 415.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005092/0.3019, allocations: 284.7 kB / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3019, allocations: 0 / 416 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.737e-05/0.302, allocations: 8 kB / 416.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.302, allocations: 8 kB / 416.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.3024, allocations: 210.1 kB / 416.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.3042, allocations: 1.156 MB / 417.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005044/0.3047, allocations: 210.7 kB / 417.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003024/0.305, allocations: 144.7 kB / 417.8 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.3051, allocations: 4 kB / 417.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002902/0.3054, allocations: 168.2 kB / 417.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.3054, allocations: 0 / 417.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001389/0.3068, allocations: 0.5217 MB / 418.5 MB, free: 7.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.811e-05/0.3069, allocations: 128.5 kB / 418.6 MB, free: 7.539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.3071, allocations: 245 kB / 418.8 MB, free: 7.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.742e-05/0.3072, allocations: 33.73 kB / 418.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.3073, allocations: 172.7 kB / 419 MB, free: 7.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.529e-05/0.3074, allocations: 71.41 kB / 419.1 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3075, allocations: 49.66 kB / 419.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.3077, allocations: 334.8 kB / 419.5 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.3078, allocations: 71.97 kB / 419.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.308, allocations: 129 kB / 419.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.3083, allocations: 168.2 kB / 419.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3083, allocations: 0 / 419.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005213/0.3089, allocations: 302.1 kB / 420.1 MB, free: 5.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.3089, allocations: 4 kB / 420.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3089, allocations: 0 / 420.1 MB, free: 5.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.3092, allocations: 92.8 kB / 420.2 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.3094, allocations: 31.92 kB / 420.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002465/0.3119, allocations: 2.147 MB / 422.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.3121, allocations: 35.91 kB / 422.4 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.3121, allocations: 11.94 kB / 422.4 MB, free: 3.457 MB / 334.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: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.3123, allocations: 149.8 kB / 422.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.782e-05/0.3124, allocations: 31.73 kB / 422.6 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.228e-05/0.3124, allocations: 34.23 kB / 422.7 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3124, allocations: 4 kB / 422.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3124, allocations: 0 / 422.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3125, allocations: 0 / 422.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.3135, allocations: 0.7728 MB / 423.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.3135, allocations: 0 / 423.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.3136, allocations: 19.98 kB / 423.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002578/0.3139, allocations: 88.83 kB / 423.5 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.3139, allocations: 4 kB / 423.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002327/0.3162, allocations: 2.139 MB / 425.7 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3163, allocations: 0 / 425.7 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006944/0.317, allocations: 461 kB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.3171, allocations: 128.9 kB / 426.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.131e-05/0.3171, allocations: 7.984 kB / 426.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.3173, allocations: 19.92 kB / 426.3 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3175, allocations: 36.02 kB / 426.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.3175, allocations: 8 kB / 426.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001734/0.3177, allocations: 176.5 kB / 426.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3177, allocations: 0 / 426.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004319/0.3181, allocations: 87.89 kB / 426.6 MB, free: 15.07 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009972/0.3191, allocations: 0.9942 MB / 427.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007021/0.3198, allocations: 366.2 kB / 427.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3198, allocations: 4 kB / 427.9 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.3203, allocations: 263.7 kB / 428.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.3207, allocations: 60.7 kB / 428.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003673/0.3243, allocations: 2.794 MB / 431.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.3248, allocations: 0.7678 MB / 431.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.89e-05/0.3249, allocations: 18.28 kB / 431.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.325, allocations: 87.41 kB / 431.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.325, allocations: 0 / 431.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.153/1.478, allocations: 7.601 MB / 439.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/13.03, allocations: 10.17 kB / 439.5 MB, free: 2.156 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1)