Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_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.001193/0.001193, allocations: 95.78 kB / 16.31 MB, free: 6.461 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.001312/0.001312, allocations: 176.4 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002565, allocations: 6.375 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09475, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00392/0.0987, allocations: 4.24 MB / 355.5 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008321/0.107, allocations: 7.787 MB / 363.3 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005157/0.1076, allocations: 15.88 kB / 363.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007511/0.1084, allocations: 318.5 kB / 363.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001687/0.1101, allocations: 0.7517 MB / 364.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1112, allocations: 462.7 kB / 364.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00225/0.1134, allocations: 1.63 MB / 366.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.1137, allocations: 139 kB / 366.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003001/0.114, allocations: 270.8 kB / 366.8 MB, free: 12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.1143, allocations: 290.3 kB / 367.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.1144, allocations: 23.98 kB / 367.1 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.1155, allocations: 0.6127 MB / 367.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.607e-05/0.1156, allocations: 79.45 kB / 367.8 MB, free: 11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.1157, allocations: 201.1 kB / 368 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008492/0.1166, allocations: 0.8452 MB / 368.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.1166, allocations: 0 / 368.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1166, allocations: 0 / 368.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.1166, allocations: 0 / 368.9 MB, free: 9.945 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.001676/0.1183, allocations: 1.147 MB / 370 MB, free: 8.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1184, allocations: 8.031 kB / 370 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.1184, allocations: 62.53 kB / 370.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.1186, allocations: 110.7 kB / 370.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.1197, allocations: 0.809 MB / 371 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.1197, allocations: 20.56 kB / 371 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.1198, allocations: 24 kB / 371 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004755/0.1202, allocations: 311.6 kB / 371.3 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1203, allocations: 3.938 kB / 371.3 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.067e-05/0.1203, allocations: 12 kB / 371.4 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.1203, allocations: 8 kB / 371.4 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000395/0.1207, allocations: 242.1 kB / 371.6 MB, free: 7.078 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.1224, allocations: 1.206 MB / 372.8 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.1228, allocations: 190.6 kB / 373 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008388/0.1312, allocations: 8.616 MB / 381.6 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1313, allocations: 34.56 kB / 381.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.384e-06/0.1313, allocations: 0 / 381.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001514/0.1328, allocations: 0.657 MB / 382.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.563e-05/0.1329, allocations: 77.11 kB / 382.4 MB, free: 10.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009019/0.1338, allocations: 0.7909 MB / 383.2 MB, free: 9.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.1338, allocations: 25.7 kB / 383.2 MB, free: 9.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003617/0.1342, allocations: 448.6 kB / 383.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.881e-05/0.1342, allocations: 90.78 kB / 383.7 MB, free: 9.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.1343, allocations: 4 kB / 383.7 MB, free: 9.395 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.1344, allocations: 314 kB / 384 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.1345, allocations: 64.2 kB / 384.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1347, allocations: 153.8 kB / 384.2 MB, free: 8.836 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.1348, allocations: 84.02 kB / 384.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1349, allocations: 0 / 384.3 MB, free: 8.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005548/0.1354, allocations: 420.8 kB / 384.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1354, allocations: 4.281 kB / 384.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.759e-05/0.1355, allocations: 16 kB / 384.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003464/0.1358, allocations: 136.8 kB / 384.9 MB, free: 8.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001616/0.136, allocations: 35.97 kB / 384.9 MB, free: 8.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006037/0.1366, allocations: 0.7106 MB / 385.6 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.1369, allocations: 27.8 kB / 385.7 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/0.1369, allocations: 16 kB / 385.7 MB, free: 7.363 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.0002487/0.1372, allocations: 193.8 kB / 385.9 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.1373, allocations: 102.8 kB / 386 MB, free: 7.062 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008229/0.1381, allocations: 425.7 kB / 386.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1381, allocations: 0 / 386.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1381, allocations: 4 kB / 386.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1381, allocations: 0 / 386.4 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005612/0.1387, allocations: 0.5074 MB / 386.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.851e-05/0.1387, allocations: 8 kB / 386.9 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.1389, allocations: 23.92 kB / 386.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002595/0.1391, allocations: 140.7 kB / 387.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.1392, allocations: 11.95 kB / 387.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005422/0.1397, allocations: 0.6994 MB / 387.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1397, allocations: 0 / 387.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005253/0.1402, allocations: 460.2 kB / 388.2 MB, free: 4.703 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.1405, allocations: 175.8 kB / 388.4 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.895e-05/0.1406, allocations: 4 kB / 388.4 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.1408, allocations: 7.984 kB / 388.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.1408, allocations: 23.98 kB / 388.4 MB, free: 4.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.248e-05/0.1408, allocations: 11.95 kB / 388.4 MB, free: 4.465 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005748/0.1414, allocations: 0.5305 MB / 389 MB, free: 3.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1414, allocations: 0 / 389 MB, free: 3.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005636/0.142, allocations: 195.8 kB / 389.2 MB, free: 3.734 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.001153/0.1432, allocations: 1.166 MB / 390.3 MB, free: 2.539 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005543/0.1437, allocations: 275.2 kB / 390.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1437, allocations: 0.5625 kB / 390.6 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002837/0.144, allocations: 191.1 kB / 390.8 MB, free: 2.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006133/0.1447, allocations: 154.3 kB / 390.9 MB, free: 1.91 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/0.1515, allocations: 5.576 MB / 396.5 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.1519, allocations: 0.9533 MB / 397.5 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003665/0.1523, allocations: 110.7 kB / 397.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.1526, allocations: 315.3 kB / 397.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1526, allocations: 0 / 397.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.1845, allocations: 16.61 MB / 414.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003487/0.185, allocations: 215.4 kB / 414.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.043/2.228, allocations: 64 / 414.7 MB, free: 10.07 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat