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.001184/0.001184, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008774/0.0008774, allocations: 108.2 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002789/0.0002789, allocations: 4 kB / 358 MB, free: 9.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.208, allocations: 51.49 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3133, allocations: 92.29 MB / 0.49 GB, free: 14.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.3136, allocations: 72.69 kB / 0.4901 GB, free: 14.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2438/0.5574, allocations: 37.67 MB / 0.5269 GB, free: 84.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5574, allocations: 0 / 0.5269 GB, free: 84.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.5574, allocations: 12 kB / 0.5269 GB, free: 84.44 MB / 378.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.00151/0.5589, allocations: 1.234 MB / 0.5281 GB, free: 83.16 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.559, allocations: 8.031 kB / 0.5281 GB, free: 83.15 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.975e-05/0.559, allocations: 66.53 kB / 0.5282 GB, free: 83.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.5592, allocations: 126.6 kB / 0.5283 GB, free: 82.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009016/0.5602, allocations: 0.7584 MB / 0.529 GB, free: 82.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.5602, allocations: 20.56 kB / 0.5291 GB, free: 82.12 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.079e-05/0.5602, allocations: 27.91 kB / 0.5291 GB, free: 82.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.5606, allocations: 315.6 kB / 0.5294 GB, free: 81.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5606, allocations: 0 / 0.5294 GB, free: 81.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.5607, allocations: 12 kB / 0.5294 GB, free: 81.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.5607, allocations: 4 kB / 0.5294 GB, free: 81.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.561, allocations: 238.1 kB / 0.5296 GB, free: 81.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.5624, allocations: 1.21 MB / 0.5308 GB, free: 80.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.5627, allocations: 199.7 kB / 0.531 GB, free: 80.03 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008522/0.5712, allocations: 11.03 MB / 0.5418 GB, free: 67.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.5713, allocations: 34.56 kB / 0.5418 GB, free: 67.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.144e-06/0.5713, allocations: 0 / 0.5418 GB, free: 67.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001317/0.5726, allocations: 0.6324 MB / 0.5424 GB, free: 66.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.625e-05/0.5726, allocations: 81.11 kB / 0.5425 GB, free: 66.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008023/0.5734, allocations: 0.6799 MB / 0.5432 GB, free: 65.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.5735, allocations: 33.7 kB / 0.5432 GB, free: 65.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002409/0.5737, allocations: 440.7 kB / 0.5436 GB, free: 65.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.5738, allocations: 78.89 kB / 0.5437 GB, free: 65.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.307e-05/0.5738, allocations: 7.938 kB / 0.5437 GB, free: 65.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.095e-05/0.5739, allocations: 314 kB / 0.544 GB, free: 64.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001156/0.574, allocations: 68.2 kB / 0.5441 GB, free: 64.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.5741, allocations: 141.8 kB / 0.5442 GB, free: 64.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.5743, allocations: 104 kB / 0.5443 GB, free: 64.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5743, allocations: 3.938 kB / 0.5443 GB, free: 64.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005145/0.5748, allocations: 409.1 kB / 0.5447 GB, free: 63.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.5748, allocations: 12.03 kB / 0.5447 GB, free: 63.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.372e-05/0.5749, allocations: 12 kB / 0.5447 GB, free: 63.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003045/0.5752, allocations: 136.8 kB / 0.5448 GB, free: 63.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.5753, allocations: 35.97 kB / 0.5449 GB, free: 63.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00046/0.5758, allocations: 0.7167 MB / 0.5456 GB, free: 63.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003234/0.5761, allocations: 31.72 kB / 0.5456 GB, free: 63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.192e-05/0.5762, allocations: 12 kB / 0.5456 GB, free: 62.99 MB / 378.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 () * 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.0002216/0.5764, allocations: 201.8 kB / 0.5458 GB, free: 62.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.5765, allocations: 102.8 kB / 0.5459 GB, free: 62.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007403/0.5773, allocations: 431.4 kB / 0.5463 GB, free: 62.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.5773, allocations: 4 kB / 0.5463 GB, free: 62.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/0.5773, allocations: 0 / 0.5463 GB, free: 62.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5773, allocations: 3.953 kB / 0.5463 GB, free: 62.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005189/0.5778, allocations: 0.5035 MB / 0.5468 GB, free: 61.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.838e-05/0.5779, allocations: 12 kB / 0.5468 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.578, allocations: 19.98 kB / 0.5469 GB, free: 61.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002339/0.5782, allocations: 140.7 kB / 0.547 GB, free: 61.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.5782, allocations: 11.94 kB / 0.547 GB, free: 61.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004206/0.5787, allocations: 0.7162 MB / 0.5477 GB, free: 60.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.5787, allocations: 0 / 0.5477 GB, free: 60.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004718/0.5792, allocations: 472.1 kB / 0.5481 GB, free: 60.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.5794, allocations: 171.8 kB / 0.5483 GB, free: 60.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.338e-05/0.5794, allocations: 8 kB / 0.5483 GB, free: 60.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.5797, allocations: 7.984 kB / 0.5483 GB, free: 60.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.5797, allocations: 15.94 kB / 0.5483 GB, free: 60.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.5798, allocations: 12 kB / 0.5484 GB, free: 60.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005156/0.5803, allocations: 0.5383 MB / 0.5489 GB, free: 59.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5803, allocations: 4 kB / 0.5489 GB, free: 59.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005861/0.5809, allocations: 215.7 kB / 0.5491 GB, free: 59.29 MB / 378.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 () * 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.001047/0.5819, allocations: 1.222 MB / 0.5503 GB, free: 58.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004652/0.5824, allocations: 280 kB / 0.5505 GB, free: 57.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5824, allocations: 0.5625 kB / 0.5505 GB, free: 57.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.5827, allocations: 194.6 kB / 0.5507 GB, free: 57.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005578/0.5832, allocations: 152.5 kB / 0.5509 GB, free: 57.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005499/0.5887, allocations: 5.594 MB / 0.5563 GB, free: 51.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.589, allocations: 0.9607 MB / 0.5573 GB, free: 50.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003456/0.5894, allocations: 94.02 kB / 0.5574 GB, free: 50.49 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002372/0.5897, allocations: 323.3 kB / 0.5577 GB, free: 50.17 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5897, allocations: 0 / 0.5577 GB, free: 50.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03172/0.6214, allocations: 17.18 MB / 0.5745 GB, free: 33.17 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.6216, allocations: 205.1 kB / 0.5746 GB, free: 32.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.433/3.055, allocations: 0 / 0.5746 GB, free: 32.93 MB / 378.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