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.002137/0.002137, allocations: 118.6 kB / 18.5 MB, free: 4.434 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.002693/0.002693, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.486/1.486, allocations: 230.5 MB / 254.7 MB, free: 15.01 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.001964/0.001964, allocations: 59.91 kB / 373.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1105, allocations: 53.32 MB / 426.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2259/0.3364, allocations: 5.301 MB / 432.2 MB, free: 7.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009554/0.346, allocations: 9.154 MB / 441.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009121/0.3469, allocations: 38.22 kB / 441.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.3482, allocations: 393.8 kB / 441.8 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003289/0.3515, allocations: 0.8456 MB / 442.6 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002393/0.3539, allocations: 0.5996 MB / 443.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003148/0.357, allocations: 1.72 MB / 444.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002742/0.3573, allocations: 102.1 kB / 445 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005957/0.3579, allocations: 315.6 kB / 445.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004399/0.3583, allocations: 325.4 kB / 445.6 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.913e-05/0.3584, allocations: 29.34 kB / 445.7 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002089/0.3605, allocations: 0.661 MB / 446.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.3606, allocations: 100.9 kB / 446.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004176/0.361, allocations: 404.9 kB / 446.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002183/0.3632, allocations: 1.221 MB / 448.1 MB, free: 348 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3632, allocations: 4 kB / 448.1 MB, free: 344 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3632, allocations: 0 / 448.1 MB, free: 344 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.175e-05/0.3633, allocations: 0 / 448.1 MB, free: 344 kB / 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.002497/0.3658, allocations: 1.321 MB / 449.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3658, allocations: 10.16 kB / 449.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.164e-05/0.3659, allocations: 61.55 kB / 449.4 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003534/0.3662, allocations: 132.8 kB / 449.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001497/0.3677, allocations: 0.8565 MB / 450.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.3678, allocations: 19 kB / 450.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.06e-05/0.3678, allocations: 27.89 kB / 450.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000561/0.3684, allocations: 310.1 kB / 450.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.509e-05/0.3684, allocations: 0 / 450.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.3685, allocations: 12.2 kB / 450.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.3685, allocations: 7.891 kB / 450.8 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004515/0.3689, allocations: 238.1 kB / 451 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.3712, allocations: 1.191 MB / 452.2 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004064/0.3716, allocations: 170.5 kB / 452.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003495/0.3719, allocations: 197.6 kB / 452.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01074/0.3827, allocations: 8.88 MB / 461.5 MB, free: 5.371 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/0.3827, allocations: 36.12 kB / 461.5 MB, free: 5.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 3.036e-06/0.3827, allocations: 3.938 kB / 461.5 MB, free: 5.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001695/0.3844, allocations: 0.6577 MB / 462.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.3845, allocations: 79.23 kB / 462.2 MB, free: 4.914 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.3856, allocations: 0.803 MB / 463 MB, free: 4.578 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.3856, allocations: 31.23 kB / 463.1 MB, free: 4.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004056/0.386, allocations: 445.8 kB / 463.5 MB, free: 4.184 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.801e-05/0.3861, allocations: 79.38 kB / 463.6 MB, free: 4.121 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.3862, allocations: 59.91 kB / 463.6 MB, free: 4.086 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3864, allocations: 323.7 kB / 464 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.3865, allocations: 64.47 kB / 464 MB, free: 3.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.3867, allocations: 147.9 kB / 464.2 MB, free: 3.617 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.3871, allocations: 233.5 kB / 464.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3871, allocations: 0 / 464.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007366/0.3878, allocations: 409.4 kB / 464.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.3878, allocations: 10.59 kB / 464.8 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.151e-05/0.3879, allocations: 13.28 kB / 464.8 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/0.3883, allocations: 139 kB / 465 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3884, allocations: 32.78 kB / 465 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007398/0.3892, allocations: 0.7137 MB / 465.7 MB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004386/0.3896, allocations: 28.91 kB / 465.7 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.3897, allocations: 22.41 kB / 465.7 MB, free: 2.523 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.0003462/0.39, allocations: 193.7 kB / 465.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001689/0.3902, allocations: 108.1 kB / 466 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008812/0.3911, allocations: 402.7 kB / 466.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.525e-06/0.3911, allocations: 2.219 kB / 466.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3911, allocations: 0 / 466.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3911, allocations: 0 / 466.4 MB, free: 2.078 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008311/0.3919, allocations: 0.5078 MB / 466.9 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.523e-05/0.3919, allocations: 15.88 kB / 467 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001359/0.3921, allocations: 20.36 kB / 467 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.3924, allocations: 145 kB / 467.1 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.3924, allocations: 9.469 kB / 467.1 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007381/0.3932, allocations: 0.6902 MB / 467.8 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.3932, allocations: 1.547 kB / 467.8 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006644/0.3938, allocations: 458.9 kB / 468.3 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.3942, allocations: 176.1 kB / 468.4 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.463e-05/0.3942, allocations: 5.156 kB / 468.4 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.3944, allocations: 7.531 kB / 468.5 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.3945, allocations: 16.05 kB / 468.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.3945, allocations: 7.781 kB / 468.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007283/0.3953, allocations: 0.5528 MB / 469 MB, free: 180 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3953, allocations: 1.062 kB / 469 MB, free: 180 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007413/0.396, allocations: 193.8 kB / 469.2 MB, free: 148 kB / 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.001567/0.3976, allocations: 1.192 MB / 470.4 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006879/0.3983, allocations: 271 kB / 470.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3983, allocations: 0 / 470.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.3986, allocations: 165.8 kB / 470.8 MB, free: 14.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008207/0.3994, allocations: 170.1 kB / 471 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008505/0.4079, allocations: 5.322 MB / 476.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006612/0.4086, allocations: 0.9389 MB / 477.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000414/0.409, allocations: 112.9 kB / 477.4 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000398/0.4094, allocations: 313.3 kB / 477.7 MB, free: 10.53 MB / 382.1 MB Notification: Performance of SimCode: time 1.603e-06/0.4094, allocations: 3.938 kB / 477.7 MB, free: 10.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05321/0.4626, allocations: 18.48 MB / 496.2 MB, free: 9.531 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.02, allocations: 4.062 kB / 496.2 MB, free: 9.527 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.488088072743267] Failed to read output from testmodel.py, exit status != 0: ['time', 'J2.D.v', 'RC.v', 'J1.D.v'] 14.126630638726056 14.146690561 13.779441115 Calling exit ...