Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",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.002294/0.002293, allocations: 188.9 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.01/2.01, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001166/0.001166, allocations: 98.78 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006065/0.0006066, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.124, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.009187/0.1332, allocations: 5.231 MB / 379.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.006044/0.1393, allocations: 2.335 MB / 382.2 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007648/0.1401, allocations: 23.94 kB / 382.2 MB, free: 7.719 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001127/0.1413, allocations: 274.4 kB / 382.5 MB, free: 7.449 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002584/0.1439, allocations: 0.6309 MB / 383.1 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003166/0.1471, allocations: 0.8918 MB / 384 MB, free: 5.922 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001957/0.149, allocations: 0.7339 MB / 384.7 MB, free: 5.184 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003116/0.1522, allocations: 1.156 MB / 385.9 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007376/0.1529, allocations: 366.6 kB / 386.3 MB, free: 3.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008411/0.1538, allocations: 474 kB / 386.7 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001498/0.154, allocations: 48 kB / 386.8 MB, free: 3.105 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.1551, allocations: 303.6 kB / 387.1 MB, free: 2.809 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002235/0.1553, allocations: 179.2 kB / 387.2 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003016/0.1557, allocations: 205.2 kB / 387.4 MB, free: 2.426 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.1576, allocations: 1.114 MB / 388.6 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1576, allocations: 0 / 388.6 MB, free: 1.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1576, allocations: 0 / 388.6 MB, free: 1.309 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.1577, allocations: 0 / 388.6 MB, free: 1.309 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: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.2551/0.4128, allocations: 1.47 MB / 390 MB, free: 19.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.4129, allocations: 8.156 kB / 390 MB, free: 19.75 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006225/0.4135, allocations: 178.3 kB / 390.2 MB, free: 19.7 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006242/0.4198, allocations: 0.5777 MB / 390.8 MB, free: 19.64 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.4212, allocations: 491.4 kB / 391.3 MB, free: 19.36 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.4214, allocations: 88.05 kB / 391.4 MB, free: 19.36 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003528/0.4218, allocations: 117.6 kB / 391.5 MB, free: 19.36 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003738/0.4255, allocations: 1.004 MB / 392.5 MB, free: 19.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.052e-05/0.4256, allocations: 6.859 kB / 392.5 MB, free: 19.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001721/0.4258, allocations: 45.62 kB / 392.5 MB, free: 19.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.4259, allocations: 32.75 kB / 392.6 MB, free: 19.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004083/0.43, allocations: 1.033 MB / 393.6 MB, free: 18.67 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01154/0.4415, allocations: 3.88 MB / 397.5 MB, free: 16.3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003577/0.4452, allocations: 2.058 MB / 399.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002271/0.4455, allocations: 102.5 kB / 399.6 MB, free: 14.43 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001594/0.4471, allocations: 474.6 kB / 400.1 MB, free: 14.21 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 4.308e-06/0.4471, allocations: 4 kB / 400.1 MB, free: 14.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=124): time 0.01563/0.4627, allocations: 3.958 MB / 404.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.4628, allocations: 143.7 kB / 404.2 MB, free: 12.1 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007368/0.4636, allocations: 409.6 kB / 404.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001823/0.4638, allocations: 46.23 kB / 404.6 MB, free: 11.84 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.4641, allocations: 491.2 kB / 405.1 MB, free: 11.44 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/0.4645, allocations: 423 kB / 405.5 MB, free: 11.12 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.793e-05/0.4646, allocations: 25.25 kB / 405.6 MB, free: 11.1 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.4648, allocations: 361.7 kB / 405.9 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.466, allocations: 357.2 kB / 406.3 MB, free: 10.63 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.4674, allocations: 0.5744 MB / 406.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.4688, allocations: 444 kB / 407.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.616e-06/0.4689, allocations: 2.031 kB / 407.3 MB, free: 10.04 MB / 282.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.004296/0.4732, allocations: 1.391 MB / 408.7 MB, free: 9.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.302e-05/0.4732, allocations: 11 kB / 408.7 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.4733, allocations: 5.781 kB / 408.7 MB, free: 9.422 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.4748, allocations: 344.2 kB / 409 MB, free: 9.309 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.4766, allocations: 215.4 kB / 409.2 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009963/0.4866, allocations: 7.782 MB / 417 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/0.488, allocations: 60.16 kB / 417.1 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/0.4882, allocations: 47.73 kB / 417.1 MB, free: 2.285 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * 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.0006545/0.4889, allocations: 266.8 kB / 417.4 MB, free: 2.066 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.4891, allocations: 72.91 kB / 417.4 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003884/0.493, allocations: 1.291 MB / 418.7 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.649e-05/0.493, allocations: 11.84 kB / 418.7 MB, free: 1.277 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.4931, allocations: 11.91 kB / 418.8 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/0.4931, allocations: 3.984 kB / 418.8 MB, free: 1.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006255/0.4993, allocations: 2.451 MB / 421.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.687e-06/0.4994, allocations: 4 kB / 421.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.5008, allocations: 147.8 kB / 421.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001468/0.5022, allocations: 330.6 kB / 421.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.5024, allocations: 21.2 kB / 421.7 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.5136, allocations: 7.535 MB / 429.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5136, allocations: 0 / 429.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005585/0.5192, allocations: 1.799 MB / 431 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005195/0.5198, allocations: 220.2 kB / 431.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/0.5199, allocations: 23.95 kB / 431.3 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008814/0.5208, allocations: 43.98 kB / 431.3 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003095/0.5212, allocations: 88.86 kB / 431.4 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.898e-05/0.5213, allocations: 35.98 kB / 431.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004749/0.5217, allocations: 275.2 kB / 431.7 MB, free: 4.352 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.054e-06/0.5218, allocations: 0 / 431.7 MB, free: 4.352 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001684/0.5235, allocations: 320.4 kB / 432 MB, free: 4.043 MB / 298.7 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) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 79 * 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.005943/0.5294, allocations: 2.474 MB / 434.5 MB, free: 1.531 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.004398/0.5338, allocations: 1.62 MB / 436.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.5339, allocations: 0 / 436.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002811/0.5367, allocations: 1.156 MB / 437.3 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.5373, allocations: 49.52 kB / 437.3 MB, free: 14.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009042/0.5464, allocations: 6.609 MB / 443.9 MB, free: 7.836 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008973/0.5474, allocations: 1.044 MB / 445 MB, free: 6.762 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009602/0.5483, allocations: 367.3 kB / 445.3 MB, free: 6.402 MB / 314.7 MB Notification: Performance of SimCode: time 1.122e-06/0.5483, allocations: 3.938 kB / 445.3 MB, free: 6.398 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.426/3.975, allocations: 28.65 MB / 474 MB, free: 9.68 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat