Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",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.00126/0.00126, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.00134/0.001341, allocations: 183 kB / 17.2 MB, free: 5.91 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.372/1.372, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.0002638, allocations: 9.141 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1187, allocations: 50.42 MB / 351.2 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006844/0.1256, allocations: 5.236 MB / 356.5 MB, free: 6.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004683/0.1303, allocations: 2.303 MB / 358.8 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007709/0.1311, allocations: 16 kB / 358.8 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.1322, allocations: 274.4 kB / 359.1 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001775/0.1339, allocations: 0.6114 MB / 359.7 MB, free: 3.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.1359, allocations: 0.8906 MB / 360.6 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.1373, allocations: 0.7105 MB / 361.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002025/0.1393, allocations: 1.148 MB / 362.4 MB, free: 340 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005859/0.1399, allocations: 366.6 kB / 362.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005779/0.1405, allocations: 442.1 kB / 363.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.872e-05/0.1406, allocations: 48 kB / 363.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008966/0.1415, allocations: 315.6 kB / 363.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.1417, allocations: 171.3 kB / 363.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.1419, allocations: 205.1 kB / 363.9 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.1433, allocations: 1.106 MB / 365 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1433, allocations: 0 / 365 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1433, allocations: 0 / 365 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.1433, allocations: 0 / 365 MB, free: 13.7 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004205/0.1475, allocations: 1.452 MB / 366.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.26e-05/0.1476, allocations: 8.031 kB / 366.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002891/0.1479, allocations: 171.2 kB / 366.7 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003108/0.151, allocations: 482.3 kB / 367.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008384/0.1519, allocations: 481.3 kB / 367.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.459e-05/0.1519, allocations: 86.23 kB / 367.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000173/0.1521, allocations: 116 kB / 367.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/0.154, allocations: 0.963 MB / 368.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/0.1541, allocations: 0 / 368.8 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-05/0.1542, allocations: 48 kB / 368.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.576e-05/0.1542, allocations: 28 kB / 368.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.156, allocations: 0.9653 MB / 369.8 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006147/0.1622, allocations: 3.718 MB / 373.5 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002127/0.1644, allocations: 1.555 MB / 375.1 MB, free: 3.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001362/0.1645, allocations: 98.16 kB / 375.2 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009022/0.1654, allocations: 478.5 kB / 375.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 2.425e-06/0.1654, allocations: 0 / 375.6 MB, free: 2.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.00874/0.1742, allocations: 3.916 MB / 379.6 MB, free: 14.49 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.1743, allocations: 149.4 kB / 379.7 MB, free: 14.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000479/0.1748, allocations: 389.5 kB / 380.1 MB, free: 13.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.122e-05/0.1749, allocations: 45.7 kB / 380.1 MB, free: 13.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.1752, allocations: 419.6 kB / 380.5 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003292/0.1756, allocations: 410 kB / 380.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.507e-05/0.1756, allocations: 28 kB / 381 MB, free: 13.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1758, allocations: 382.7 kB / 381.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007013/0.1765, allocations: 354.4 kB / 381.7 MB, free: 12.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008802/0.1774, allocations: 0.525 MB / 382.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008342/0.1783, allocations: 436.3 kB / 382.6 MB, free: 11.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1783, allocations: 0 / 382.6 MB, free: 11.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00252/0.1808, allocations: 1.365 MB / 384 MB, free: 9.902 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1809, allocations: 7.938 kB / 384 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.1809, allocations: 7.984 kB / 384 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008379/0.1817, allocations: 333.9 kB / 384.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008154/0.1826, allocations: 199.7 kB / 384.5 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008503/0.1911, allocations: 7.786 MB / 392.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009473/0.1921, allocations: 52.05 kB / 392.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.825e-05/0.1922, allocations: 40 kB / 392.4 MB, free: 0.957 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005473/0.1927, allocations: 257.6 kB / 392.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.1928, allocations: 75.11 kB / 392.7 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/0.1954, allocations: 1.286 MB / 394 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.1955, allocations: 12 kB / 394 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.1955, allocations: 8 kB / 394 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/0.1955, allocations: 7.969 kB / 394 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.1996, allocations: 2.414 MB / 396.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.1996, allocations: 0 / 396.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006809/0.2003, allocations: 151.8 kB / 396.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008039/0.2011, allocations: 325.3 kB / 396.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.325e-05/0.2012, allocations: 27.98 kB / 397 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007487/0.2087, allocations: 7.537 MB / 404.5 MB, free: 4.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.2087, allocations: 4.031 kB / 404.5 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.2121, allocations: 1.767 MB / 406.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.2125, allocations: 224.2 kB / 406.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.2126, allocations: 20 kB / 406.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005125/0.2131, allocations: 47.97 kB / 406.5 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/0.2134, allocations: 89.19 kB / 406.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.997e-05/0.2135, allocations: 35.98 kB / 406.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003521/0.2138, allocations: 267.1 kB / 406.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2139, allocations: 0 / 406.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001285/0.2151, allocations: 320 kB / 407.2 MB, free: 1.422 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 19,(1,100.0%) 2,(1,100.0%) 4,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003747/0.2189, allocations: 2.458 MB / 409.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003011/0.2219, allocations: 1.603 MB / 411.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.2219, allocations: 4.375 kB / 411.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.224, allocations: 1.142 MB / 412.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005121/0.2246, allocations: 53.48 kB / 412.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006787/0.2313, allocations: 5.581 MB / 418.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008684/0.2322, allocations: 1.036 MB / 419.1 MB, free: 5.242 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005392/0.2328, allocations: 102 kB / 419.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.2333, allocations: 335.3 kB / 419.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of SimCode: time 2.003e-06/0.2333, allocations: 0 / 419.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.231/0.4643, allocations: 16.44 MB / 436 MB, free: 61.07 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/0.4645, allocations: 221.5 kB / 436.2 MB, free: 60.82 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.304/2.768, allocations: 0 / 436.2 MB, free: 60.82 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat