Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.001425/0.001425, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002007/0.002007, allocations: 211.8 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 8.055 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-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.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "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.001984/0.001984, allocations: 60.78 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2888, allocations: 53.38 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.007585/0.2964, allocations: 5.311 MB / 437.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.3086, allocations: 9.17 MB / 446.4 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007892/0.3094, allocations: 59.31 kB / 446.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.3106, allocations: 401.5 kB / 446.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002621/0.3132, allocations: 0.8419 MB / 447.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.3149, allocations: 0.6026 MB / 448.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002887/0.3178, allocations: 1.725 MB / 450 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002883/0.3181, allocations: 111.3 kB / 450.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005278/0.3186, allocations: 322.6 kB / 450.4 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004713/0.3191, allocations: 321.9 kB / 450.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.3192, allocations: 28 kB / 450.8 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.3207, allocations: 0.6672 MB / 451.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.3209, allocations: 107.3 kB / 451.5 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004277/0.3213, allocations: 405.5 kB / 451.9 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.3231, allocations: 1.221 MB / 453.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3231, allocations: 0 / 453.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3231, allocations: 0 / 453.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.3231, allocations: 0 / 453.2 MB, free: 1.527 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.002019/0.3252, allocations: 1.234 MB / 454.4 MB, free: 264 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3252, allocations: 12.03 kB / 454.4 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.802e-05/0.3253, allocations: 66.72 kB / 454.5 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003251/0.3256, allocations: 132.2 kB / 454.6 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.327, allocations: 0.7769 MB / 455.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.327, allocations: 24.48 kB / 455.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.294e-05/0.3271, allocations: 31.94 kB / 455.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005774/0.3277, allocations: 311.8 kB / 455.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.3277, allocations: 0 / 455.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.484e-05/0.3277, allocations: 12 kB / 455.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.3277, allocations: 4 kB / 455.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006308/0.3284, allocations: 238 kB / 456 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.3304, allocations: 1.16 MB / 457.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/0.3308, allocations: 174.7 kB / 457.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.3311, allocations: 201.2 kB / 457.5 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00679/0.3379, allocations: 3.111 MB / 460.6 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.338, allocations: 42.55 kB / 460.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.016e-06/0.338, allocations: 0 / 460.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001664/0.3396, allocations: 0.5718 MB / 461.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/0.3397, allocations: 77.11 kB / 461.3 MB, free: 9.121 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.3408, allocations: 0.8025 MB / 462.1 MB, free: 8.301 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.3408, allocations: 29.7 kB / 462.2 MB, free: 8.266 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004492/0.3413, allocations: 445 kB / 462.6 MB, free: 7.828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.079e-05/0.3413, allocations: 83.25 kB / 462.7 MB, free: 7.746 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.3415, allocations: 57.89 kB / 462.7 MB, free: 7.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.3417, allocations: 329.9 kB / 463 MB, free: 7.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.3418, allocations: 64.2 kB / 463.1 MB, free: 7.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.342, allocations: 141.9 kB / 463.2 MB, free: 7.121 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.3424, allocations: 236.9 kB / 463.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3424, allocations: 0 / 463.5 MB, free: 6.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006923/0.3431, allocations: 409.3 kB / 463.9 MB, free: 6.453 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.417e-05/0.3432, allocations: 10.5 kB / 463.9 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.458e-05/0.3432, allocations: 16.27 kB / 463.9 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.3436, allocations: 136.8 kB / 464 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.3438, allocations: 35.97 kB / 464.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007376/0.3445, allocations: 0.7084 MB / 464.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.3448, allocations: 31.78 kB / 464.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.099e-05/0.3448, allocations: 16 kB / 464.8 MB, free: 5.477 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.3451, allocations: 201.7 kB / 465 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.3453, allocations: 107.3 kB / 465.1 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008582/0.3461, allocations: 399.5 kB / 465.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.3461, allocations: 4 kB / 465.5 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3461, allocations: 3.938 kB / 465.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3461, allocations: 0 / 465.5 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006668/0.3468, allocations: 490.6 kB / 466 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.633e-05/0.3468, allocations: 15.98 kB / 466 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001332/0.347, allocations: 23.98 kB / 466 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000299/0.3472, allocations: 139.9 kB / 466.2 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.3473, allocations: 11.98 kB / 466.2 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006919/0.348, allocations: 0.7008 MB / 466.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.348, allocations: 0 / 466.9 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006551/0.3486, allocations: 455.2 kB / 467.3 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000203/0.3488, allocations: 91.33 kB / 467.4 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.117e-05/0.3489, allocations: 8 kB / 467.4 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.3491, allocations: 12.05 kB / 467.4 MB, free: 2.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.3492, allocations: 15.94 kB / 467.5 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.3492, allocations: 8 kB / 467.5 MB, free: 2.727 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000725/0.3499, allocations: 0.55 MB / 468 MB, free: 2.168 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3499, allocations: 0 / 468 MB, free: 2.168 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006005/0.3505, allocations: 195.6 kB / 468.2 MB, free: 1.977 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001452/0.352, allocations: 1.177 MB / 469.4 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006566/0.3526, allocations: 267.4 kB / 469.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3526, allocations: 4.5 kB / 469.7 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.3529, allocations: 169.6 kB / 469.8 MB, free: 324 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008398/0.3538, allocations: 164.2 kB / 470 MB, free: 156 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007933/0.3617, allocations: 5.33 MB / 475.3 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/0.3624, allocations: 0.9374 MB / 476.2 MB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003471/0.3627, allocations: 110.7 kB / 476.4 MB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.3631, allocations: 315.3 kB / 476.7 MB, free: 9.25 MB / 382.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3631, allocations: 0 / 476.7 MB, free: 9.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05706/0.4201, allocations: 18.66 MB / 495.3 MB, free: 6.801 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.23, allocations: 10.17 kB / 495.3 MB, free: 6.793 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_4_1_0-beta_om_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.634227621834725] Failed to read output from testmodel.py, exit status != 0: ['time', 'J2.D.v', 'RC.v', 'J1.D.v'] 14.33366844104603 14.348206629 14.021825967 Calling exit ...