Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009767/0.0009768, allocations: 91.92 kB / 16.31 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008421/0.0008422, allocations: 181.5 kB / 17.21 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 223.2 MB / 241.2 MB, free: 14.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002598, allocations: 4 kB / 300.9 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.108, allocations: 50.42 MB / 351.3 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004453/0.1126, allocations: 4.584 MB / 355.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009205/0.1218, allocations: 8.28 MB / 364.2 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006941/0.1225, allocations: 19.88 kB / 364.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008717/0.1234, allocations: 294.4 kB / 364.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00245/0.1259, allocations: 0.6677 MB / 365.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001529/0.1274, allocations: 434.1 kB / 365.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002535/0.1299, allocations: 1.588 MB / 367.2 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.1302, allocations: 139.1 kB / 367.3 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003398/0.1306, allocations: 274.7 kB / 367.6 MB, free: 3.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003334/0.1309, allocations: 294.2 kB / 367.9 MB, free: 3.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.131, allocations: 16 kB / 367.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.1323, allocations: 0.5813 MB / 368.5 MB, free: 2.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.109e-05/0.1324, allocations: 83.39 kB / 368.6 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.1325, allocations: 197.2 kB / 368.8 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008471/0.1334, allocations: 0.8531 MB / 369.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1334, allocations: 4 kB / 369.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1334, allocations: 0 / 369.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.1334, allocations: 0 / 369.6 MB, free: 1.297 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.001749/0.1352, allocations: 1.147 MB / 370.8 MB, free: 100 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.1352, allocations: 12.02 kB / 370.8 MB, free: 88 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.381e-05/0.1353, allocations: 62.48 kB / 370.8 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1861/0.3215, allocations: 113.4 kB / 370.9 MB, free: 25.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.3231, allocations: 0.8002 MB / 371.7 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/0.3232, allocations: 18.31 kB / 371.8 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.559e-05/0.3232, allocations: 23.91 kB / 371.8 MB, free: 25.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005986/0.3238, allocations: 314.3 kB / 372.1 MB, free: 25.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3239, allocations: 2.953 kB / 372.1 MB, free: 25.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.212e-05/0.3239, allocations: 14.17 kB / 372.1 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.3239, allocations: 8.609 kB / 372.1 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004101/0.3243, allocations: 235.1 kB / 372.3 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.3261, allocations: 1.188 MB / 373.5 MB, free: 24.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003945/0.3265, allocations: 199.4 kB / 373.7 MB, free: 24.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003329/0.3268, allocations: 230 kB / 374 MB, free: 24.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007244/0.3341, allocations: 8.584 MB / 382.5 MB, free: 16.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/0.3341, allocations: 39.12 kB / 382.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.844e-06/0.3341, allocations: 0 / 382.6 MB, free: 16.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001581/0.3357, allocations: 0.6667 MB / 383.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.853e-05/0.3358, allocations: 88.33 kB / 383.3 MB, free: 16.54 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009647/0.3367, allocations: 0.7851 MB / 384.1 MB, free: 16.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.3368, allocations: 30.2 kB / 384.1 MB, free: 16.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004042/0.3372, allocations: 447 kB / 384.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/0.3373, allocations: 76.86 kB / 384.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.333e-05/0.3373, allocations: 5.219 kB / 384.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.353e-05/0.3373, allocations: 316.6 kB / 385 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.3375, allocations: 69.91 kB / 385 MB, free: 15.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.3377, allocations: 147.9 kB / 385.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001676/0.3378, allocations: 94.25 kB / 385.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3379, allocations: 1.312 kB / 385.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005709/0.3384, allocations: 415.3 kB / 385.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.3385, allocations: 13.31 kB / 385.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.932e-05/0.3385, allocations: 12.92 kB / 385.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000346/0.3388, allocations: 134.8 kB / 385.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.339, allocations: 37.22 kB / 385.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004979/0.3395, allocations: 0.7125 MB / 386.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.3398, allocations: 29.25 kB / 386.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.3398, allocations: 15.67 kB / 386.6 MB, free: 14.41 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.00021/0.34, allocations: 191.2 kB / 386.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/0.3401, allocations: 108.2 kB / 386.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000803/0.3409, allocations: 418.7 kB / 387.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.341, allocations: 2.312 kB / 387.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.341, allocations: 5.844 kB / 387.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.341, allocations: 1.219 kB / 387.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.3416, allocations: 0.5097 MB / 387.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.198e-05/0.3416, allocations: 16.12 kB / 387.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.3418, allocations: 18.16 kB / 387.9 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002716/0.342, allocations: 142.7 kB / 388 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3421, allocations: 5.328 kB / 388 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004575/0.3425, allocations: 0.7035 MB / 388.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3425, allocations: 1.031 kB / 388.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005443/0.3431, allocations: 453.1 kB / 389.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.3433, allocations: 177 kB / 389.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.657e-05/0.3433, allocations: 5.781 kB / 389.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.3435, allocations: 5.578 kB / 389.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.3436, allocations: 20.3 kB / 389.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.3436, allocations: 8.812 kB / 389.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006436/0.3443, allocations: 0.5407 MB / 389.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3443, allocations: 0 / 389.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006068/0.3449, allocations: 197.4 kB / 390.1 MB, free: 12.32 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001054/0.3459, allocations: 1.157 MB / 391.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.3465, allocations: 283.8 kB / 391.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3465, allocations: 0 / 391.6 MB, free: 11.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002677/0.3468, allocations: 188 kB / 391.7 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006832/0.3475, allocations: 150.6 kB / 391.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006625/0.3541, allocations: 4.291 MB / 396.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.3544, allocations: 0.943 MB / 397.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003841/0.3548, allocations: 108.2 kB / 397.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/0.3551, allocations: 310.6 kB / 397.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3551, allocations: 0 / 397.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/0.3857, allocations: 16.97 MB / 414.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000258/0.386, allocations: 216.6 kB / 414.7 MB, free: 8.52 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/2.618, allocations: 0 / 414.7 MB, free: 8.52 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat