Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008899/0.0008899, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008695/0.0008695, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8819/0.8819, allocations: 173.4 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.207e-05/2.413e-05, allocations: 6.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004303/0.004327, allocations: 3.652 MB / 322.1 MB, free: 2.691 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.005763, allocations: 0.9933 MB / 323.1 MB, free: 1.691 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.005959, allocations: 8 kB / 323.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.006133, allocations: 99.02 kB / 323.2 MB, free: 1.586 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002386/0.006372, allocations: 190.3 kB / 323.4 MB, free: 1.398 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.006841, allocations: 223.6 kB / 323.6 MB, free: 1.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007029/0.007544, allocations: 0.8325 MB / 324.4 MB, free: 352 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.007786, allocations: 113.5 kB / 324.5 MB, free: 236 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005088/0.008295, allocations: 459 kB / 325 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.008556, allocations: 267.3 kB / 325.2 MB, free: 15.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.005e-05/0.008636, allocations: 80 kB / 325.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.492e-05/0.008701, allocations: 84 kB / 325.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.015e-05/0.008792, allocations: 163.4 kB / 325.6 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.008962, allocations: 239.5 kB / 325.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006196/0.009581, allocations: 0.8959 MB / 326.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.009584, allocations: 0 / 326.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 5e-06/0.009589, allocations: 7.938 kB / 326.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.0096, allocations: 0 / 326.7 MB, free: 14.06 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001666/0.01127, allocations: 0.9538 MB / 327.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.01131, allocations: 8.922 kB / 327.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.105e-05/0.01138, allocations: 74.7 kB / 327.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.028e-05/0.01147, allocations: 68.56 kB / 327.8 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004792/0.01195, allocations: 355.7 kB / 328.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.01198, allocations: 33.31 kB / 328.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.336e-05/0.01203, allocations: 40.36 kB / 328.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008592/0.01289, allocations: 0.6168 MB / 328.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.0129, allocations: 192 / 328.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.01294, allocations: 20.12 kB / 328.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.01295, allocations: 8 kB / 328.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001031/0.01398, allocations: 0.6245 MB / 329.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.01614, allocations: 1.948 MB / 331.4 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.01801, allocations: 0.8041 MB / 332.2 MB, free: 8.312 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005786/0.01859, allocations: 368.3 kB / 332.6 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/0.01862, allocations: 4.328 kB / 332.6 MB, free: 7.949 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006378/0.01926, allocations: 456.2 kB / 333.1 MB, free: 7.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.663e-06/0.01926, allocations: 0 / 333.1 MB, free: 7.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.006423/0.02568, allocations: 2.214 MB / 335.3 MB, free: 5.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.02572, allocations: 81.11 kB / 335.3 MB, free: 5.156 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003056/0.02603, allocations: 409.9 kB / 335.7 MB, free: 4.746 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.02607, allocations: 33.7 kB / 335.8 MB, free: 4.707 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.02619, allocations: 232.9 kB / 336 MB, free: 4.473 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.206e-05/0.02627, allocations: 134.8 kB / 336.1 MB, free: 4.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.02638, allocations: 70.06 kB / 336.2 MB, free: 4.262 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.02649, allocations: 362.7 kB / 336.6 MB, free: 3.898 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005207/0.02701, allocations: 322.4 kB / 336.9 MB, free: 3.574 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000531/0.02754, allocations: 385.6 kB / 337.3 MB, free: 3.176 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009483/0.02849, allocations: 0.5915 MB / 337.8 MB, free: 2.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.02849, allocations: 0 / 337.8 MB, free: 2.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001794/0.03029, allocations: 0.9958 MB / 338.8 MB, free: 1.555 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.03032, allocations: 33.7 kB / 338.9 MB, free: 1.516 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.03032, allocations: 0 / 338.9 MB, free: 1.516 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007124/0.03103, allocations: 396.5 kB / 339.3 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.03127, allocations: 87.92 kB / 339.3 MB, free: 1.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004667/0.03594, allocations: 3.495 MB / 342.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003032/0.03624, allocations: 91.59 kB / 342.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.879e-05/0.03627, allocations: 15.98 kB / 342.9 MB, free: 13.33 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * 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 {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.03644, allocations: 183 kB / 343.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.296e-05/0.03649, allocations: 47.72 kB / 343.2 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.636e-05/0.03656, allocations: 48.47 kB / 343.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.03656, allocations: 4 kB / 343.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.03656, allocations: 3.984 kB / 343.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.03657, allocations: 4 kB / 343.2 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003918/0.03696, allocations: 484.8 kB / 343.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.03696, allocations: 4 kB / 343.7 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.0372, allocations: 79.92 kB / 343.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006409/0.03785, allocations: 400.5 kB / 344.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.03788, allocations: 8 kB / 344.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004449/0.04232, allocations: 3.486 MB / 347.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.04233, allocations: 0 / 347.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002914/0.04524, allocations: 1.457 MB / 349.1 MB, free: 6.957 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.04539, allocations: 103.5 kB / 349.2 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.04544, allocations: 12 kB / 349.2 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.04569, allocations: 71.91 kB / 349.3 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.0458, allocations: 59.84 kB / 349.4 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.04582, allocations: 15.98 kB / 349.4 MB, free: 6.699 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002127/0.04604, allocations: 291.2 kB / 349.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04604, allocations: 0 / 349.7 MB, free: 6.418 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003825/0.04642, allocations: 171.8 kB / 349.8 MB, free: 6.25 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003128/0.04955, allocations: 2.01 MB / 351.8 MB, free: 4.203 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.05102, allocations: 0.9246 MB / 352.8 MB, free: 3.246 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.05103, allocations: 0 / 352.8 MB, free: 3.246 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007966/0.05182, allocations: 0.5412 MB / 353.3 MB, free: 2.691 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.05216, allocations: 101.4 kB / 353.4 MB, free: 2.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008643/0.0608, allocations: 5.861 MB / 359.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.06097, allocations: 240.7 kB / 359.5 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001582/0.06113, allocations: 43.41 kB / 359.6 MB, free: 12.3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.06132, allocations: 164.4 kB / 359.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.06132, allocations: 0 / 359.7 MB, free: 12.14 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03372/0.09504, allocations: 18.9 MB / 378.6 MB, free: 9.434 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.249/8.344, allocations: 18.61 kB / 378.6 MB, free: 9.418 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-12 --interface-type ModelExchange --solver CVode --output-interval 5e-07 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.141096163541079] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 8.444867006503046 8.452799335 8.441414241 Calling exit ...