Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001007/0.001008, allocations: 87.92 kB / 292.1 MB, free: 6.047 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.534e-05/4.54e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1164, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4113/0.5278, allocations: 92.23 MB / 494.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.528, allocations: 81.55 kB / 494.4 MB, free: 13.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08889/0.6169, allocations: 37.64 MB / 0.5196 GB, free: 8.984 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.617, allocations: 0 / 0.5196 GB, free: 8.984 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.077e-05/0.617, allocations: 12 kB / 0.5196 GB, free: 8.973 MB / 394.7 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.002163/0.6192, allocations: 1.04 MB / 0.5206 GB, free: 7.895 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.6193, allocations: 8.031 kB / 0.5206 GB, free: 7.887 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/0.6194, allocations: 66.53 kB / 0.5207 GB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003683/0.6198, allocations: 135.4 kB / 0.5208 GB, free: 7.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.6211, allocations: 0.7508 MB / 0.5216 GB, free: 6.879 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.6212, allocations: 16.56 kB / 0.5216 GB, free: 6.863 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.16e-05/0.6212, allocations: 24 kB / 0.5216 GB, free: 6.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005924/0.6218, allocations: 299.7 kB / 0.5219 GB, free: 6.531 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.6219, allocations: 3.938 kB / 0.5219 GB, free: 6.527 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.6219, allocations: 11.94 kB / 0.5219 GB, free: 6.516 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.6219, allocations: 15.98 kB / 0.5219 GB, free: 6.5 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004035/0.6223, allocations: 219.8 kB / 0.5221 GB, free: 6.289 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002191/0.6245, allocations: 1.21 MB / 0.5233 GB, free: 5.008 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/0.6249, allocations: 186.6 kB / 0.5235 GB, free: 4.816 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.6253, allocations: 222.4 kB / 0.5237 GB, free: 4.594 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01323/0.6385, allocations: 11.12 MB / 0.5346 GB, free: 7.574 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.6386, allocations: 30.56 kB / 0.5346 GB, free: 7.535 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 3.246e-06/0.6386, allocations: 0 / 0.5346 GB, free: 7.535 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009053/0.6395, allocations: 348 kB / 0.5349 GB, free: 7.188 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.252e-05/0.6396, allocations: 81.11 kB / 0.535 GB, free: 7.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.6407, allocations: 0.6653 MB / 0.5357 GB, free: 6.406 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.6407, allocations: 25.7 kB / 0.5357 GB, free: 6.375 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003991/0.6411, allocations: 440.4 kB / 0.5361 GB, free: 5.941 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.496e-05/0.6412, allocations: 78.83 kB / 0.5362 GB, free: 5.863 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.363e-05/0.6412, allocations: 4 kB / 0.5362 GB, free: 5.859 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.6414, allocations: 325.9 kB / 0.5365 GB, free: 5.535 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.6415, allocations: 60.23 kB / 0.5365 GB, free: 5.477 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.6417, allocations: 139.3 kB / 0.5367 GB, free: 5.309 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.6419, allocations: 77.62 kB / 0.5368 GB, free: 5.234 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.6419, allocations: 0 / 0.5368 GB, free: 5.234 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006572/0.6426, allocations: 393.1 kB / 0.5371 GB, free: 4.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.6426, allocations: 4 kB / 0.5371 GB, free: 4.836 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.007e-05/0.6426, allocations: 19.98 kB / 0.5371 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000403/0.643, allocations: 143.5 kB / 0.5373 GB, free: 4.676 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001734/0.6432, allocations: 31.92 kB / 0.5373 GB, free: 4.645 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007603/0.644, allocations: 0.7084 MB / 0.538 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003954/0.6444, allocations: 31.78 kB / 0.538 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.315e-05/0.6445, allocations: 20 kB / 0.5381 GB, free: 3.859 MB / 410.7 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 () * 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.0001204/0.6446, allocations: 112.9 kB / 0.5382 GB, free: 3.742 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.6448, allocations: 102.8 kB / 0.5383 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009415/0.6457, allocations: 418.9 kB / 0.5387 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.6457, allocations: 7.953 kB / 0.5387 GB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6457, allocations: 0 / 0.5387 GB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.6458, allocations: 0 / 0.5387 GB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007511/0.6465, allocations: 0.5112 MB / 0.5392 GB, free: 2.656 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-05/0.6465, allocations: 16.94 kB / 0.5392 GB, free: 2.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.6467, allocations: 19.98 kB / 0.5392 GB, free: 2.621 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002934/0.647, allocations: 138.5 kB / 0.5393 GB, free: 2.484 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.647, allocations: 8 kB / 0.5393 GB, free: 2.477 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000646/0.6477, allocations: 0.7083 MB / 0.54 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6477, allocations: 0 / 0.54 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006016/0.6483, allocations: 448.1 kB / 0.5405 GB, free: 1.285 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002737/0.6486, allocations: 175.8 kB / 0.5406 GB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.899e-05/0.6487, allocations: 8 kB / 0.5406 GB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.6489, allocations: 15.94 kB / 0.5407 GB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.649, allocations: 13.67 kB / 0.5407 GB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.649, allocations: 8 kB / 0.5407 GB, free: 1.051 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007254/0.6498, allocations: 0.5236 MB / 0.5412 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6498, allocations: 4 kB / 0.5412 GB, free: 0.5117 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007362/0.6505, allocations: 219.7 kB / 0.5414 GB, free: 304 kB / 410.7 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 () * 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.001552/0.6521, allocations: 1.206 MB / 0.5426 GB, free: 15.06 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005962/0.6527, allocations: 268.1 kB / 0.5428 GB, free: 14.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6527, allocations: 0 / 0.5428 GB, free: 14.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.653, allocations: 177.5 kB / 0.543 GB, free: 14.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007301/0.6538, allocations: 148.5 kB / 0.5431 GB, free: 14.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002073/0.6558, allocations: 0.9927 MB / 0.5441 GB, free: 13.43 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/0.6564, allocations: 0.9646 MB / 0.5451 GB, free: 12.44 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003612/0.6568, allocations: 94.02 kB / 0.5451 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/0.6571, allocations: 319.3 kB / 0.5455 GB, free: 12.03 MB / 426.7 MB Notification: Performance of SimCode: time 7.32e-07/0.6571, allocations: 0 / 0.5455 GB, free: 12.03 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04233/0.6995, allocations: 17.03 MB / 0.5621 GB, free: 11.25 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.6997, allocations: 184.7 kB / 0.5623 GB, free: 11.02 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.53/3.23, allocations: 0 / 0.5623 GB, free: 11.02 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat