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.001178/0.001178, allocations: 98.5 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 194.5 kB / 17.9 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002621/0.0002624, allocations: 8 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09382/0.09411, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004554/0.0987, allocations: 4.608 MB / 362.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.109, allocations: 8.311 MB / 371.2 MB, free: 1.012 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.1096, allocations: 19.88 kB / 371.2 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008828/0.1105, allocations: 306.4 kB / 371.5 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.1128, allocations: 0.6677 MB / 372.2 MB, free: 20 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1691/0.2819, allocations: 428.6 kB / 372.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002902/0.2848, allocations: 1.617 MB / 374.2 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002988/0.2851, allocations: 141.5 kB / 374.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005737/0.2857, allocations: 280.4 kB / 374.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004289/0.2861, allocations: 288.1 kB / 374.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.749e-05/0.2862, allocations: 16.97 kB / 375 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001695/0.2879, allocations: 0.5954 MB / 375.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.2881, allocations: 90.2 kB / 375.6 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002699/0.2883, allocations: 198.6 kB / 375.8 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001364/0.2897, allocations: 0.8622 MB / 376.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.2897, allocations: 1.312 kB / 376.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.2897, allocations: 0 / 376.7 MB, free: 8.957 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.56e-05/0.2898, allocations: 0 / 376.7 MB, free: 8.957 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.001743/0.2915, allocations: 1.156 MB / 377.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2916, allocations: 8.531 kB / 377.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.306e-05/0.2917, allocations: 66.22 kB / 377.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.292, allocations: 129.4 kB / 378 MB, free: 8.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.2934, allocations: 0.8039 MB / 378.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.2934, allocations: 20.03 kB / 378.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.2935, allocations: 23.22 kB / 378.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005247/0.294, allocations: 316 kB / 379.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.294, allocations: 1.281 kB / 379.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.294, allocations: 11.03 kB / 379.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.2941, allocations: 6.547 kB / 379.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000392/0.2945, allocations: 236.9 kB / 379.5 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.2962, allocations: 1.193 MB / 380.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003631/0.2966, allocations: 198 kB / 380.8 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.2969, allocations: 225.9 kB / 381.1 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007829/0.3047, allocations: 8.901 MB / 390 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.3048, allocations: 41.17 kB / 390 MB, free: 15.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.385e-06/0.3048, allocations: 0 / 390 MB, free: 15.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001561/0.3064, allocations: 0.675 MB / 390.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.3065, allocations: 85.81 kB / 390.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009462/0.3074, allocations: 0.7937 MB / 391.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.3075, allocations: 30.2 kB / 391.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.3078, allocations: 437.2 kB / 392 MB, free: 14.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.3078, allocations: 80.42 kB / 392.1 MB, free: 14.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.3078, allocations: 3.938 kB / 392.1 MB, free: 14.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.308, allocations: 318.6 kB / 392.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.3081, allocations: 71.94 kB / 392.5 MB, free: 14.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.3083, allocations: 144.9 kB / 392.6 MB, free: 14.42 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.3085, allocations: 89.05 kB / 392.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3085, allocations: 1.5 kB / 392.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006009/0.3091, allocations: 412.7 kB / 393.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.3091, allocations: 5.531 kB / 393.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/0.3091, allocations: 18.2 kB / 393.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003374/0.3095, allocations: 143.6 kB / 393.3 MB, free: 14.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.3097, allocations: 37.25 kB / 393.3 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006324/0.3103, allocations: 0.7126 MB / 394 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.3106, allocations: 28.38 kB / 394 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.3107, allocations: 12.09 kB / 394.1 MB, free: 13.73 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.0002621/0.3109, allocations: 199.6 kB / 394.3 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.3111, allocations: 103.2 kB / 394.4 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007994/0.3119, allocations: 409.4 kB / 394.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.3119, allocations: 2.906 kB / 394.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3119, allocations: 0 / 394.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3119, allocations: 1.641 kB / 394.8 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006096/0.3125, allocations: 0.5127 MB / 395.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/0.3125, allocations: 17.48 kB / 395.3 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.3127, allocations: 21.44 kB / 395.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002559/0.3129, allocations: 132.4 kB / 395.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.313, allocations: 8.781 kB / 395.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005491/0.3135, allocations: 0.708 MB / 396.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3135, allocations: 1.062 kB / 396.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.3141, allocations: 454.7 kB / 396.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.3143, allocations: 182.1 kB / 396.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.238e-05/0.3144, allocations: 4.406 kB / 396.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.3146, allocations: 4.094 kB / 396.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.135e-05/0.3146, allocations: 15.95 kB / 396.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.3146, allocations: 10.62 kB / 396.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006322/0.3153, allocations: 0.5323 MB / 397.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3153, allocations: 0 / 397.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000659/0.316, allocations: 196.4 kB / 397.5 MB, free: 12.25 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.001184/0.3171, allocations: 1.166 MB / 398.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005428/0.3177, allocations: 284.2 kB / 399 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3177, allocations: 0 / 399 MB, free: 11.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002764/0.318, allocations: 184.4 kB / 399.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007405/0.3188, allocations: 157.7 kB / 399.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007282/0.326, allocations: 4.277 MB / 403.6 MB, free: 9.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.3266, allocations: 0.9391 MB / 404.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000435/0.327, allocations: 114.4 kB / 404.6 MB, free: 8.453 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.3273, allocations: 311.3 kB / 404.9 MB, free: 8.422 MB / 318.1 MB Notification: Performance of SimCode: time 1.412e-06/0.3273, allocations: 0 / 404.9 MB, free: 8.422 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.3616, allocations: 17.02 MB / 422 MB, free: 8.453 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003188/0.362, allocations: 212.7 kB / 422.2 MB, free: 8.215 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.141/2.503, allocations: 0 / 422.2 MB, free: 8.215 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