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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002047/0.002047, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.468/1.468, allocations: 227.7 MB / 247 MB, free: 10.37 MB / 206.1 MB 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.002018/0.002018, allocations: 63.58 kB / 307.3 MB, free: 428 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1098, allocations: 50.54 MB / 357.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006547/0.1164, allocations: 5.3 MB / 363.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1946/0.3109, allocations: 9.1 MB / 372.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005978/0.3116, allocations: 17.03 kB / 372.3 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.3128, allocations: 398.3 kB / 372.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00342/0.3162, allocations: 0.824 MB / 373.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.3186, allocations: 0.6086 MB / 374.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004047/0.3227, allocations: 1.703 MB / 375.8 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005189/0.3232, allocations: 168.2 kB / 376 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009495/0.3242, allocations: 308.3 kB / 376.3 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.3246, allocations: 319.5 kB / 376.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-05/0.3247, allocations: 29.53 kB / 376.6 MB, free: 8.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.3271, allocations: 0.6571 MB / 377.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.3272, allocations: 107 kB / 377.4 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004504/0.3277, allocations: 407.1 kB / 377.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002363/0.33, allocations: 1.202 MB / 379 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.3301, allocations: 0 / 379 MB, free: 8.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3301, allocations: 0 / 379 MB, free: 8.164 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.3301, allocations: 1.375 kB / 379 MB, free: 8.164 MB / 302.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.001903/0.332, allocations: 1.277 MB / 380.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3321, allocations: 14.47 kB / 380.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.862e-05/0.3321, allocations: 61.47 kB / 380.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000292/0.3324, allocations: 132.6 kB / 380.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.3336, allocations: 0.8382 MB / 381.3 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.3337, allocations: 22.47 kB / 381.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.114e-05/0.3337, allocations: 28.19 kB / 381.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005131/0.3342, allocations: 310 kB / 381.6 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3343, allocations: 1.812 kB / 381.7 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.3343, allocations: 14.06 kB / 381.7 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.3343, allocations: 11 kB / 381.7 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.3347, allocations: 230.7 kB / 381.9 MB, free: 6.543 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001724/0.3365, allocations: 1.19 MB / 383.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003681/0.3369, allocations: 196.4 kB / 383.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003255/0.3372, allocations: 228.5 kB / 383.5 MB, free: 5.609 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008092/0.3453, allocations: 8.872 MB / 392.4 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.3454, allocations: 36.59 kB / 392.4 MB, free: 13.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.054e-06/0.3454, allocations: 0 / 392.4 MB, free: 13.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001726/0.3471, allocations: 0.6637 MB / 393.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.3472, allocations: 82.38 kB / 393.2 MB, free: 13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001244/0.3485, allocations: 0.8006 MB / 394 MB, free: 12.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.3485, allocations: 30.89 kB / 394 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004285/0.3489, allocations: 438.2 kB / 394.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.93e-05/0.349, allocations: 78.5 kB / 394.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3491, allocations: 59.09 kB / 394.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.3493, allocations: 316.3 kB / 394.9 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.3495, allocations: 74.5 kB / 394.9 MB, free: 11.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002261/0.3497, allocations: 150.9 kB / 395.1 MB, free: 11.72 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.3501, allocations: 234 kB / 395.3 MB, free: 11.56 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.107e-06/0.3501, allocations: 3.938 kB / 395.3 MB, free: 11.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000671/0.3508, allocations: 408.5 kB / 395.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3508, allocations: 9.875 kB / 395.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/0.3509, allocations: 13.16 kB / 395.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003521/0.3512, allocations: 142.9 kB / 395.9 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.3514, allocations: 39.05 kB / 395.9 MB, free: 11.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006717/0.3521, allocations: 0.7038 MB / 396.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.3524, allocations: 26.41 kB / 396.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.3525, allocations: 16 kB / 396.7 MB, free: 10.71 MB / 318.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.0002531/0.3527, allocations: 196.3 kB / 396.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.3529, allocations: 102.1 kB / 396.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008638/0.3538, allocations: 416.6 kB / 397.4 MB, free: 10.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.3538, allocations: 6.312 kB / 397.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3538, allocations: 1.469 kB / 397.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.3538, allocations: 0 / 397.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006944/0.3545, allocations: 0.5062 MB / 397.9 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-05/0.3545, allocations: 12.38 kB / 397.9 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.3546, allocations: 14.98 kB / 397.9 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.3549, allocations: 148.9 kB / 398 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.355, allocations: 4.125 kB / 398 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006034/0.3556, allocations: 0.7028 MB / 398.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3556, allocations: 0 / 398.7 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.3562, allocations: 461.8 kB / 399.2 MB, free: 8.871 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.3564, allocations: 174.8 kB / 399.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.66e-05/0.3565, allocations: 1.688 kB / 399.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.3568, allocations: 7.562 kB / 399.4 MB, free: 8.703 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/0.3568, allocations: 15.83 kB / 399.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/0.3569, allocations: 15.92 kB / 399.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006854/0.3575, allocations: 0.5413 MB / 399.9 MB, free: 8.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3576, allocations: 0 / 399.9 MB, free: 8.367 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000672/0.3582, allocations: 195.2 kB / 400.1 MB, free: 8.336 MB / 318.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.001396/0.3596, allocations: 1.189 MB / 401.3 MB, free: 7.457 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006357/0.3603, allocations: 283.3 kB / 401.6 MB, free: 7.305 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.3603, allocations: 0 / 401.6 MB, free: 7.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003121/0.3606, allocations: 183.9 kB / 401.8 MB, free: 7.188 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008804/0.3615, allocations: 169 kB / 402 MB, free: 7.094 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00736/0.3689, allocations: 5.641 MB / 407.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006455/0.3696, allocations: 0.945 MB / 408.5 MB, free: 2.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000431/0.37, allocations: 110.6 kB / 408.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.3704, allocations: 319.3 kB / 409 MB, free: 1.734 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3704, allocations: 0 / 409 MB, free: 1.734 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05453/0.4249, allocations: 18.15 MB / 427.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.17, allocations: 4.297 kB / 427.1 MB, free: 15.8 MB / 350.1 MB (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 --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)