Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_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.0009083/0.0009081, allocations: 97.75 kB / 16.93 MB, free: 5.984 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.0008381/0.0008381, allocations: 180.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004879/0.000488, allocations: 12.22 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09541, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004592/0.1001, allocations: 4.137 MB / 332.6 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009868/0.11, allocations: 7.446 MB / 340 MB, free: 8.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009721/0.111, allocations: 15.88 kB / 340 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1121, allocations: 310.5 kB / 340.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002698/0.1148, allocations: 0.7323 MB / 341.1 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001939/0.1168, allocations: 458.8 kB / 341.5 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003071/0.1199, allocations: 1.595 MB / 343.1 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.1202, allocations: 142.9 kB / 343.2 MB, free: 5.133 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.1206, allocations: 254.7 kB / 343.5 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004442/0.1211, allocations: 278.3 kB / 343.8 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.288e-05/0.1212, allocations: 20 kB / 343.8 MB, free: 4.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001723/0.1229, allocations: 0.5504 MB / 344.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.123, allocations: 83.39 kB / 344.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002549/0.1233, allocations: 193.2 kB / 344.6 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001081/0.1244, allocations: 0.8452 MB / 345.4 MB, free: 2.914 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1244, allocations: 0 / 345.4 MB, free: 2.914 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.1244, allocations: 0 / 345.4 MB, free: 2.914 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.937e-05/0.1245, allocations: 0 / 345.4 MB, free: 2.914 MB / 286.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.001954/0.1264, allocations: 1.147 MB / 346.6 MB, free: 1.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.1265, allocations: 8.031 kB / 346.6 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.407e-05/0.1266, allocations: 62.53 kB / 346.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001544/0.1268, allocations: 114.6 kB / 346.8 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.1281, allocations: 0.8129 MB / 347.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.1281, allocations: 16.56 kB / 347.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.1282, allocations: 24 kB / 347.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.1287, allocations: 315.6 kB / 347.9 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1287, allocations: 0 / 347.9 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.1288, allocations: 12 kB / 347.9 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.1288, allocations: 4 kB / 347.9 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004133/0.1292, allocations: 238.1 kB / 348.2 MB, free: 48 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.1311, allocations: 1.194 MB / 349.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003485/0.1314, allocations: 202.6 kB / 349.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008273/0.1397, allocations: 8.62 MB / 358.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.828e-05/0.1398, allocations: 38.52 kB / 358.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 3.747e-06/0.1398, allocations: 0 / 358.2 MB, free: 4.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001589/0.1414, allocations: 0.6504 MB / 358.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.1415, allocations: 81.05 kB / 359 MB, free: 3.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009156/0.1424, allocations: 0.787 MB / 359.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1424, allocations: 29.7 kB / 359.8 MB, free: 2.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003202/0.1427, allocations: 444.6 kB / 360.2 MB, free: 2.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.522e-05/0.1428, allocations: 78.83 kB / 360.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.1428, allocations: 4 kB / 360.3 MB, free: 2.371 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1429, allocations: 321.9 kB / 360.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1431, allocations: 72.2 kB / 360.7 MB, free: 1.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.1433, allocations: 141.9 kB / 360.8 MB, free: 1.809 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.1435, allocations: 92.42 kB / 360.9 MB, free: 1.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1435, allocations: 0 / 360.9 MB, free: 1.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006264/0.1441, allocations: 408.9 kB / 361.3 MB, free: 1.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.1441, allocations: 4 kB / 361.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.292e-05/0.1442, allocations: 27.92 kB / 361.3 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003665/0.1445, allocations: 133.1 kB / 361.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1447, allocations: 35.91 kB / 361.5 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000609/0.1453, allocations: 0.7111 MB / 362.2 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.1456, allocations: 31.88 kB / 362.2 MB, free: 352 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.1457, allocations: 16 kB / 362.3 MB, free: 336 kB / 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.0002461/0.1459, allocations: 189.8 kB / 362.4 MB, free: 136 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1461, allocations: 114.7 kB / 362.6 MB, free: 20 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008323/0.1469, allocations: 415.4 kB / 363 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.1469, allocations: 3.984 kB / 363 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1469, allocations: 0 / 363 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1469, allocations: 0 / 363 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006685/0.1476, allocations: 0.519 MB / 363.5 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-05/0.1476, allocations: 11.98 kB / 363.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.1478, allocations: 19.98 kB / 363.5 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002647/0.148, allocations: 132.8 kB / 363.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.1481, allocations: 4 kB / 363.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005652/0.1486, allocations: 0.705 MB / 364.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1487, allocations: 4.031 kB / 364.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005591/0.1492, allocations: 448.3 kB / 364.8 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.1495, allocations: 175.8 kB / 365 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.641e-05/0.1496, allocations: 7.953 kB / 365 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.1498, allocations: 4 kB / 365 MB, free: 13.46 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.1499, allocations: 15.98 kB / 365 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.1499, allocations: 15.94 kB / 365 MB, free: 13.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000626/0.1505, allocations: 0.5305 MB / 365.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1506, allocations: 0 / 365.5 MB, free: 12.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000643/0.1512, allocations: 195.8 kB / 365.7 MB, free: 12.7 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 (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.001191/0.1524, allocations: 1.161 MB / 366.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006075/0.153, allocations: 287.5 kB / 367.2 MB, free: 11.22 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.153, allocations: 4 kB / 367.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002856/0.1533, allocations: 180.4 kB / 367.3 MB, free: 11.03 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.1538, allocations: 136.3 kB / 367.5 MB, free: 10.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008312/0.1622, allocations: 5.579 MB / 373.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000562/0.1628, allocations: 0.9566 MB / 374 MB, free: 4.074 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003783/0.1632, allocations: 110.7 kB / 374.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.1635, allocations: 307.3 kB / 374.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of SimCode: time 9.81e-07/0.1635, allocations: 0 / 374.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1755/0.3391, allocations: 16.6 MB / 391 MB, free: 49.98 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001565/0.3393, allocations: 219.6 kB / 391.2 MB, free: 49.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.362, allocations: 0 / 391.2 MB, free: 49.73 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat