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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 94.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001866/0.001866, allocations: 205.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002746, allocations: 8 kB / 306.7 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 51.5 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004216/0.1127, allocations: 4.25 MB / 362.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009265/0.122, allocations: 7.826 MB / 370.3 MB, free: 1.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008193/0.1229, allocations: 23.88 kB / 370.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009593/0.1238, allocations: 306.6 kB / 370.6 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002648/0.1265, allocations: 0.7595 MB / 371.4 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.1283, allocations: 470.7 kB / 371.8 MB, free: 132 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1778/0.3061, allocations: 1.613 MB / 373.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.3065, allocations: 136.5 kB / 373.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006669/0.3072, allocations: 282.4 kB / 373.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004444/0.3076, allocations: 288.9 kB / 374.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.835e-05/0.3077, allocations: 16.72 kB / 374.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.3097, allocations: 0.6257 MB / 374.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.3098, allocations: 81.44 kB / 374.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.3101, allocations: 203.2 kB / 375 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001114/0.3112, allocations: 0.8544 MB / 375.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.3112, allocations: 0 / 375.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3113, allocations: 1.375 kB / 375.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.496e-05/0.3113, allocations: 0 / 375.9 MB, free: 9.109 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.001683/0.313, allocations: 1.148 MB / 377 MB, free: 8.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.313, allocations: 13.94 kB / 377.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.465e-05/0.3131, allocations: 63.95 kB / 377.1 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.3134, allocations: 127.4 kB / 377.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001347/0.3148, allocations: 0.8073 MB / 378.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.3148, allocations: 17.09 kB / 378.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.3149, allocations: 22.47 kB / 378.1 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005705/0.3154, allocations: 312.1 kB / 378.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3155, allocations: 0 / 378.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.944e-05/0.3155, allocations: 11.56 kB / 378.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.3155, allocations: 10.3 kB / 378.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.316, allocations: 235.8 kB / 378.6 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.3178, allocations: 1.195 MB / 379.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003855/0.3182, allocations: 204.5 kB / 380 MB, free: 7.402 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008484/0.3267, allocations: 8.936 MB / 389 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/0.3268, allocations: 40.14 kB / 389 MB, free: 15.67 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.444e-06/0.3268, allocations: 0 / 389 MB, free: 15.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001804/0.3287, allocations: 0.6511 MB / 389.7 MB, free: 15.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.3287, allocations: 80.84 kB / 389.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.3298, allocations: 0.7857 MB / 390.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.3298, allocations: 29.92 kB / 390.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/0.3301, allocations: 442.4 kB / 391 MB, free: 15.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.685e-05/0.3302, allocations: 78.56 kB / 391.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.307e-05/0.3302, allocations: 4.656 kB / 391.1 MB, free: 15.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.3303, allocations: 323.4 kB / 391.4 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.3305, allocations: 71.25 kB / 391.5 MB, free: 14.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3307, allocations: 142.7 kB / 391.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.3309, allocations: 88.42 kB / 391.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3309, allocations: 1.188 kB / 391.7 MB, free: 14.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006958/0.3316, allocations: 412.5 kB / 392.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3316, allocations: 6.531 kB / 392.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.639e-05/0.3317, allocations: 19.56 kB / 392.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000416/0.3321, allocations: 140.8 kB / 392.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001779/0.3323, allocations: 38.33 kB / 392.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006289/0.3329, allocations: 0.7148 MB / 393 MB, free: 13.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.3333, allocations: 29.56 kB / 393 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.3334, allocations: 19.58 kB / 393.1 MB, free: 13.96 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 (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.0003138/0.3337, allocations: 190.9 kB / 393.2 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.3338, allocations: 106.4 kB / 393.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008696/0.3347, allocations: 417.9 kB / 393.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/0.3347, allocations: 2.156 kB / 393.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3347, allocations: 10.41 kB / 393.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3348, allocations: 3.75 kB / 393.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007718/0.3355, allocations: 0.5064 MB / 394.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.211e-05/0.3356, allocations: 13.52 kB / 394.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.3357, allocations: 19.95 kB / 394.3 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002796/0.336, allocations: 133.9 kB / 394.4 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.336, allocations: 5.281 kB / 394.4 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005962/0.3366, allocations: 0.7029 MB / 395.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3366, allocations: 0 / 395.1 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005981/0.3372, allocations: 457.2 kB / 395.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002526/0.3375, allocations: 172.8 kB / 395.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.656e-05/0.3376, allocations: 11.52 kB / 395.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.3378, allocations: 6.984 kB / 395.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.3379, allocations: 18.83 kB / 395.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.3379, allocations: 11.78 kB / 395.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006971/0.3386, allocations: 0.5359 MB / 396.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3386, allocations: 0 / 396.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007569/0.3394, allocations: 200.5 kB / 396.5 MB, free: 12.48 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.001385/0.3408, allocations: 1.156 MB / 397.7 MB, free: 11.74 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006208/0.3414, allocations: 278.6 kB / 398 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3414, allocations: 0 / 398 MB, free: 11.67 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002972/0.3417, allocations: 189.4 kB / 398.2 MB, free: 11.6 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007518/0.3425, allocations: 154.6 kB / 398.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00891/0.3514, allocations: 5.577 MB / 403.9 MB, free: 8.395 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.352, allocations: 0.9549 MB / 404.8 MB, free: 7.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004631/0.3524, allocations: 114.8 kB / 405 MB, free: 7.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.3527, allocations: 312.8 kB / 405.3 MB, free: 7.469 MB / 318.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3527, allocations: 2.719 kB / 405.3 MB, free: 7.469 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03371/0.3864, allocations: 16.65 MB / 421.9 MB, free: 8.383 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.3867, allocations: 210 kB / 422.1 MB, free: 8.145 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/2.552, allocations: 3.938 kB / 422.1 MB, free: 8.141 MB / 334.1 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