Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CoupledInductors,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001553/0.001553, allocations: 188.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.215/2.215, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005054/0.0005055, allocations: 12 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1193, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CoupledInductors): time 0.003789/0.1232, allocations: 2.183 MB / 376.8 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.125, allocations: 0.7453 MB / 377.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.1252, allocations: 4 kB / 377.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001135/0.1253, allocations: 43.67 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.1256, allocations: 95.7 kB / 377.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004526/0.1261, allocations: 87.89 kB / 377.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005036/0.1266, allocations: 288 kB / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003916/0.127, allocations: 170.3 kB / 378.2 MB, free: 11.72 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1273, allocations: 143.5 kB / 378.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.1276, allocations: 159.3 kB / 378.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.099e-05/0.1277, allocations: 24 kB / 378.6 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.589e-05/0.1278, allocations: 24 kB / 378.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.148e-05/0.1279, allocations: 67.75 kB / 378.6 MB, free: 11.31 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.128, allocations: 97.45 kB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005379/0.1285, allocations: 379.1 kB / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.1286, allocations: 0 / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1286, allocations: 0 / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.485e-06/0.1286, allocations: 4 kB / 379.1 MB, free: 10.84 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001514/0.1301, allocations: 0.6201 MB / 379.7 MB, free: 10.17 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.1302, allocations: 8.031 kB / 379.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.1303, allocations: 82.53 kB / 379.8 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.1305, allocations: 43.53 kB / 379.9 MB, free: 10.03 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004353/0.1309, allocations: 275.1 kB / 380.1 MB, free: 9.715 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.055e-05/0.131, allocations: 29 kB / 380.2 MB, free: 9.688 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.1311, allocations: 47.94 kB / 380.2 MB, free: 9.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.1322, allocations: 447.3 kB / 380.6 MB, free: 9.176 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.1323, allocations: 7.938 kB / 380.7 MB, free: 9.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.259e-05/0.1324, allocations: 16 kB / 380.7 MB, free: 9.152 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1324, allocations: 12 kB / 380.7 MB, free: 9.141 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008873/0.1333, allocations: 279.9 kB / 381 MB, free: 8.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002979/0.1363, allocations: 1.314 MB / 382.3 MB, free: 7.465 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000701/0.137, allocations: 243.6 kB / 382.5 MB, free: 7.219 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.1371, allocations: 4 kB / 382.5 MB, free: 7.215 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.1371, allocations: 34.56 kB / 382.5 MB, free: 7.172 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 2.475e-06/0.1371, allocations: 0 / 382.5 MB, free: 7.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.002323/0.1395, allocations: 0.5631 MB / 383.1 MB, free: 6.582 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.1396, allocations: 235.3 kB / 383.3 MB, free: 6.297 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.1399, allocations: 210.8 kB / 383.5 MB, free: 6.078 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.14, allocations: 33.7 kB / 383.6 MB, free: 6.039 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001868/0.1402, allocations: 254.4 kB / 383.8 MB, free: 5.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.1403, allocations: 102.5 kB / 383.9 MB, free: 5.684 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.041e-05/0.1403, allocations: 8 kB / 383.9 MB, free: 5.676 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1405, allocations: 326.8 kB / 384.2 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.1408, allocations: 75.97 kB / 384.3 MB, free: 5.273 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.1411, allocations: 163.2 kB / 384.5 MB, free: 5.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003505/0.1415, allocations: 103.7 kB / 384.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1415, allocations: 0 / 384.6 MB, free: 4.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007967/0.1423, allocations: 269.5 kB / 384.8 MB, free: 4.715 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1424, allocations: 4 kB / 384.8 MB, free: 4.711 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1424, allocations: 0 / 384.8 MB, free: 4.711 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1424, allocations: 11.98 kB / 384.9 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.1431, allocations: 75.89 kB / 384.9 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.1431, allocations: 4 kB / 384.9 MB, free: 4.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.1434, allocations: 35.69 kB / 385 MB, free: 4.586 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.1434, allocations: 7.984 kB / 385 MB, free: 4.578 MB / 282.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real C1.vinternal:VARIABLE(unit = "V" fixed = true protected = true ) "Capacitor voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.1438, allocations: 157.8 kB / 385.1 MB, free: 4.414 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.351e-05/0.1439, allocations: 31.7 kB / 385.2 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.144, allocations: 34.64 kB / 385.2 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.144, allocations: 7.953 kB / 385.2 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.144, allocations: 4 kB / 385.2 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.144, allocations: 0 / 385.2 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/0.1447, allocations: 401 kB / 385.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1447, allocations: 0 / 385.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005061/0.1452, allocations: 55.91 kB / 385.7 MB, free: 3.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005047/0.1458, allocations: 92.8 kB / 385.7 MB, free: 3.746 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.772e-05/0.1458, allocations: 4 kB / 385.8 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003123/0.1489, allocations: 1.859 MB / 387.6 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.149, allocations: 4.031 kB / 387.6 MB, free: 1.746 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.1504, allocations: 0.5124 MB / 388.1 MB, free: 1.215 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.1505, allocations: 116.7 kB / 388.2 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.1506, allocations: 11.95 kB / 388.3 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002892/0.1509, allocations: 8 kB / 388.3 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.658e-05/0.151, allocations: 23.97 kB / 388.3 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.151, allocations: 7.984 kB / 388.3 MB, free: 1.031 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002012/0.1512, allocations: 152.4 kB / 388.4 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1512, allocations: 0 / 388.4 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005589/0.1518, allocations: 107.7 kB / 388.5 MB, free: 0.7773 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (L1.iinternal,L2.iinternal,C1.vinternal,L3.iinternal,C2.vinternal) * 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 (18): * Single equations (assignments): 17 * 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: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2544/0.4063, allocations: 1.045 MB / 389.6 MB, free: 20.14 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000754/0.4071, allocations: 231.1 kB / 389.8 MB, free: 20.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4071, allocations: 0 / 389.8 MB, free: 20.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006893/0.4078, allocations: 277.6 kB / 390.1 MB, free: 20.02 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.4081, allocations: 17.83 kB / 390.1 MB, free: 20.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004048/0.4122, allocations: 2.092 MB / 392.2 MB, free: 18.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.4125, allocations: 0.7939 MB / 393 MB, free: 18.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.4128, allocations: 101.4 kB / 393.1 MB, free: 18.27 MB / 282.7 MB Notification: Performance of SimCode: time 9.62e-07/0.4128, allocations: 4 kB / 393.1 MB, free: 18.27 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.925/3.338, allocations: 5.266 MB / 398.4 MB, free: 17.71 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CoupledInductors.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CoupledInductors_res.mat does not exist to compare? outputFormat=mat