Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 116.2 kB / 18.49 MB, free: 4.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 222.9 kB / 21.46 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.416/1.416, allocations: 230.6 MB / 254.8 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 47.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1054, allocations: 53.34 MB / 427 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005831/0.1112, allocations: 4.116 MB / 431.2 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2069/0.3182, allocations: 1.052 MB / 432.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004086/0.3186, allocations: 13.03 kB / 432.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.3189, allocations: 85.59 kB / 432.3 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.3192, allocations: 191.6 kB / 432.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.3197, allocations: 228.1 kB / 432.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000701/0.3204, allocations: 0.8174 MB / 433.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000243/0.3206, allocations: 125.3 kB / 433.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004668/0.3211, allocations: 332.4 kB / 434 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003218/0.3214, allocations: 364.3 kB / 434.3 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.3215, allocations: 83 kB / 434.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.3217, allocations: 84.62 kB / 434.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.765e-05/0.3218, allocations: 160.5 kB / 434.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.322, allocations: 338.5 kB / 435 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009163/0.323, allocations: 0.8574 MB / 435.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.323, allocations: 4.844 kB / 435.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.323, allocations: 3.812 kB / 435.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.323, allocations: 0 / 435.8 MB, free: 7.086 MB / 350.1 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.002604/0.3256, allocations: 1.054 MB / 436.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3256, allocations: 9.75 kB / 436.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.842e-05/0.3256, allocations: 10 kB / 436.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.276e-05/0.3257, allocations: 75.48 kB / 437 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.326, allocations: 71.39 kB / 437.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005943/0.3265, allocations: 429.2 kB / 437.5 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.3266, allocations: 33.73 kB / 437.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.045e-05/0.3267, allocations: 37.92 kB / 437.6 MB, free: 5.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.3281, allocations: 0.602 MB / 438.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3282, allocations: 0 / 438.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.3282, allocations: 19.91 kB / 438.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.3282, allocations: 9.281 kB / 438.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001966/0.3302, allocations: 0.6378 MB / 438.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.3338, allocations: 2.161 MB / 441 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003823/0.3376, allocations: 0.8276 MB / 441.8 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.3387, allocations: 378.5 kB / 442.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.3388, allocations: 8.516 kB / 442.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001198/0.34, allocations: 436.4 kB / 442.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.103e-06/0.34, allocations: 0 / 442.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01456/0.3545, allocations: 2.376 MB / 445 MB, free: 3.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.3546, allocations: 87.16 kB / 445.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005785/0.3552, allocations: 416.1 kB / 445.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.627e-05/0.3552, allocations: 37.2 kB / 445.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.3554, allocations: 236.2 kB / 445.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.3555, allocations: 142.9 kB / 445.9 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.3557, allocations: 73.42 kB / 446 MB, free: 2.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.921e-05/0.3558, allocations: 360.1 kB / 446.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009535/0.3567, allocations: 302.6 kB / 446.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009475/0.3577, allocations: 337.8 kB / 446.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/0.3595, allocations: 0.5995 MB / 447.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.3595, allocations: 0 / 447.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003692/0.3632, allocations: 0.9952 MB / 448.5 MB, free: 1.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.3633, allocations: 31.89 kB / 448.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3633, allocations: 1.125 kB / 448.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.3646, allocations: 436.4 kB / 449 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005046/0.3651, allocations: 84.36 kB / 449.1 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008483/0.3735, allocations: 3.818 MB / 452.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.3747, allocations: 89.77 kB / 453 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.728e-05/0.3747, allocations: 13.72 kB / 453 MB, free: 14.52 MB / 366.1 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.0004488/0.3752, allocations: 178.8 kB / 453.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3753, allocations: 50.36 kB / 453.2 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001858/0.3755, allocations: 57.17 kB / 453.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3755, allocations: 3.594 kB / 453.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3755, allocations: 0 / 453.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.3755, allocations: 3.688 kB / 453.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009094/0.3764, allocations: 0.6253 MB / 453.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3764, allocations: 4 kB / 453.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004908/0.3769, allocations: 80.64 kB / 454 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.3782, allocations: 437.1 kB / 454.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.3782, allocations: 10.31 kB / 454.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008542/0.3867, allocations: 3.803 MB / 458.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3867, allocations: 1.516 kB / 458.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006003/0.3927, allocations: 1.49 MB / 459.7 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000373/0.3931, allocations: 190.2 kB / 459.9 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.153e-05/0.3932, allocations: 10.16 kB / 459.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005843/0.3938, allocations: 70.66 kB / 460 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001614/0.3939, allocations: 51.97 kB / 460 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.394, allocations: 14.86 kB / 460 MB, free: 9.641 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003805/0.3944, allocations: 292.1 kB / 460.3 MB, free: 9.465 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3944, allocations: 0 / 460.3 MB, free: 9.465 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007408/0.3951, allocations: 182 kB / 460.5 MB, free: 9.434 MB / 366.1 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.006426/0.4015, allocations: 2.057 MB / 462.6 MB, free: 8.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.4045, allocations: 0.9435 MB / 463.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.4045, allocations: 4.062 kB / 463.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.4062, allocations: 0.578 MB / 464.1 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006879/0.4069, allocations: 92.94 kB / 464.2 MB, free: 7.141 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01589/0.4228, allocations: 5.955 MB / 470.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000524/0.4233, allocations: 0.8427 MB / 471 MB, free: 2.773 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.4236, allocations: 53.06 kB / 471 MB, free: 2.742 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002666/0.4238, allocations: 163.8 kB / 471.2 MB, free: 2.602 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4238, allocations: 0 / 471.2 MB, free: 2.602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05148/0.4753, allocations: 18.66 MB / 489.9 MB, free: 236 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.79, allocations: 15.88 kB / 489.9 MB, free: 220 kB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.181888030958362] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 12.948287778999656 12.96330519 12.63729035 Calling exit ...