Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001833/0.001833, allocations: 107.1 kB / 20.44 MB, free: 1.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002093/0.002093, allocations: 202 kB / 23.72 MB, free: 4.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 230.5 MB / 257.4 MB, free: 7.711 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 59.91 kB / 377.7 MB, free: 2.785 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2263, allocations: 53.41 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005293/0.2316, allocations: 3.721 MB / 434.9 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.2336, allocations: 1.021 MB / 435.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002297/0.2338, allocations: 11.94 kB / 435.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002269/0.2341, allocations: 91.06 kB / 436 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.2344, allocations: 186.4 kB / 436.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005382/0.2349, allocations: 231.7 kB / 436.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008621/0.2358, allocations: 0.8289 MB / 437.2 MB, free: 340 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000258/0.236, allocations: 113.4 kB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005129/0.2366, allocations: 330.9 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004377/0.237, allocations: 318.6 kB / 438 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.2371, allocations: 84 kB / 438.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.2373, allocations: 88 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.2374, allocations: 163.5 kB / 438.3 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.2377, allocations: 282.8 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009123/0.2386, allocations: 0.8718 MB / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2386, allocations: 0 / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2386, allocations: 0 / 439.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.2386, allocations: 0 / 439.5 MB, free: 14.1 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.002734/0.2414, allocations: 0.974 MB / 440.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.2414, allocations: 19.98 kB / 440.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.2415, allocations: 70.72 kB / 440.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.2418, allocations: 68.55 kB / 440.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007744/0.2425, allocations: 372.3 kB / 440.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.2426, allocations: 29.38 kB / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.667e-05/0.2427, allocations: 36.38 kB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001528/0.2442, allocations: 0.632 MB / 441.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.2442, allocations: 4 kB / 441.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.2443, allocations: 12 kB / 441.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2443, allocations: 12 kB / 441.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.2462, allocations: 0.6323 MB / 442.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.2502, allocations: 1.967 MB / 444.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003833/0.254, allocations: 0.8236 MB / 445.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/0.2551, allocations: 376.7 kB / 445.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.721e-05/0.2552, allocations: 12.31 kB / 445.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001212/0.2564, allocations: 456.3 kB / 445.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.355e-06/0.2564, allocations: 3.938 kB / 445.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01372/0.2701, allocations: 2.301 MB / 448.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/0.2702, allocations: 85.11 kB / 448.3 MB, free: 4.988 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.2708, allocations: 417.9 kB / 448.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.374e-05/0.2708, allocations: 33.7 kB / 448.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.271, allocations: 240.9 kB / 449 MB, free: 4.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.2712, allocations: 134.8 kB / 449.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/0.2713, allocations: 74.06 kB / 449.2 MB, free: 4.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.2715, allocations: 362.7 kB / 449.5 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000974/0.2725, allocations: 322.3 kB / 449.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009945/0.2735, allocations: 401.4 kB / 450.2 MB, free: 2.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001802/0.2753, allocations: 0.6029 MB / 450.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2753, allocations: 0 / 450.8 MB, free: 2.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003585/0.2789, allocations: 1.023 MB / 451.9 MB, free: 1.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.2789, allocations: 33.7 kB / 451.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.2789, allocations: 0 / 451.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/0.2802, allocations: 436.4 kB / 452.3 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004802/0.2807, allocations: 87.86 kB / 452.4 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008718/0.2894, allocations: 3.642 MB / 456.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007167/0.2901, allocations: 95.67 kB / 456.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.862e-05/0.2902, allocations: 16 kB / 456.2 MB, free: 12.91 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.000281/0.2905, allocations: 174.5 kB / 456.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.732e-05/0.2906, allocations: 47.67 kB / 456.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001164/0.2907, allocations: 52.53 kB / 456.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2907, allocations: 8 kB / 456.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2907, allocations: 0 / 456.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2907, allocations: 3.984 kB / 456.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006576/0.2914, allocations: 496.5 kB / 456.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2914, allocations: 3.938 kB / 456.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004873/0.2918, allocations: 79.92 kB / 457 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/0.2931, allocations: 424.6 kB / 457.4 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.578e-05/0.2931, allocations: 19.98 kB / 457.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008412/0.3015, allocations: 3.634 MB / 461.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.3015, allocations: 7.922 kB / 461.1 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005848/0.3074, allocations: 1.496 MB / 462.6 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.3077, allocations: 99.59 kB / 462.7 MB, free: 6.203 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.949e-05/0.3077, allocations: 11.94 kB / 462.7 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005832/0.3083, allocations: 79.91 kB / 462.8 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.3085, allocations: 47.91 kB / 462.8 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.156e-05/0.3085, allocations: 15.98 kB / 462.8 MB, free: 6.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003482/0.3089, allocations: 291.2 kB / 463.1 MB, free: 5.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3089, allocations: 4 kB / 463.1 MB, free: 5.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.3095, allocations: 179.8 kB / 463.3 MB, free: 5.59 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.006265/0.3157, allocations: 2.049 MB / 465.3 MB, free: 3.508 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002799/0.3185, allocations: 0.9714 MB / 466.3 MB, free: 2.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3185, allocations: 0 / 466.3 MB, free: 2.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.3202, allocations: 0.5724 MB / 466.9 MB, free: 1.918 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.3207, allocations: 97.2 kB / 467 MB, free: 1.828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01551/0.3363, allocations: 6.077 MB / 473.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.3365, allocations: 240.8 kB / 473.3 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002433/0.3368, allocations: 43.39 kB / 473.3 MB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.3371, allocations: 167.4 kB / 473.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3371, allocations: 0 / 473.5 MB, free: 11.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0564/0.3935, allocations: 19.14 MB / 492.6 MB, free: 8.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.32, allocations: 7.844 kB / 492.7 MB, free: 8.184 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit_fmu --startTime=0 --stopTime=0.001 --stepSize=5e-07 --timeout=50 --tolerance=1e-12 Modelica_trunk_Modelica_Electrical_Analog_Examples_SimpleTriacCircuit.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.717595026828349] Failed to read output from testmodel.py, exit status != 0: ['time', 'L.i', 'simpleTriac.thyristor.vControl', 'simpleTriac.thyristor1.vControl'] 13.450379367917776 13.465637961 13.223983712 Calling exit ...