Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_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_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.001048/0.001048, allocations: 96.16 kB / 16.94 MB, free: 5.727 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.001036/0.001037, allocations: 183.5 kB / 17.83 MB, free: 5.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.4 MB / 224 MB, free: 13.04 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004546/0.0004548, allocations: 8 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09724, allocations: 47.57 MB / 328.4 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.005635/0.1029, allocations: 5.224 MB / 333.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003973/0.1069, allocations: 2.339 MB / 336 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004029/0.1074, allocations: 20 kB / 336 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006605/0.108, allocations: 274.4 kB / 336.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001325/0.1094, allocations: 0.6308 MB / 336.9 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1111, allocations: 0.8842 MB / 337.8 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009548/0.112, allocations: 0.7378 MB / 338.5 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001743/0.1138, allocations: 1.159 MB / 339.7 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003775/0.1142, allocations: 374.6 kB / 340.1 MB, free: 8.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004891/0.1147, allocations: 458 kB / 340.5 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.053e-05/0.1148, allocations: 48 kB / 340.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000674/0.1154, allocations: 315.6 kB / 340.9 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.1156, allocations: 167.3 kB / 341 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.1158, allocations: 209.1 kB / 341.2 MB, free: 7.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001074/0.1168, allocations: 1.118 MB / 342.3 MB, free: 5.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.1169, allocations: 0 / 342.3 MB, free: 5.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1169, allocations: 0 / 342.3 MB, free: 5.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1169, allocations: 4 kB / 342.3 MB, free: 5.941 MB / 286.1 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.003771/0.1207, allocations: 1.464 MB / 343.8 MB, free: 4.426 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.1207, allocations: 12.03 kB / 343.8 MB, free: 4.414 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002431/0.121, allocations: 179.5 kB / 344 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003712/0.1247, allocations: 0.5763 MB / 344.6 MB, free: 3.648 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006276/0.1253, allocations: 489.4 kB / 345.1 MB, free: 3.129 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.572e-05/0.1254, allocations: 86.3 kB / 345.1 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.1256, allocations: 119.9 kB / 345.3 MB, free: 2.926 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.1273, allocations: 0.9989 MB / 346.3 MB, free: 1.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.1274, allocations: 4 kB / 346.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.581e-05/0.1275, allocations: 47.98 kB / 346.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.1275, allocations: 28 kB / 346.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001818/0.1293, allocations: 1.04 MB / 347.4 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005679/0.135, allocations: 3.891 MB / 351.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00215/0.1372, allocations: 2.056 MB / 353.3 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.852e-05/0.1373, allocations: 102.1 kB / 353.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000823/0.1381, allocations: 486.4 kB / 353.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 4.178e-06/0.1381, allocations: 4 kB / 353.9 MB, free: 9.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=124): time 0.008186/0.1463, allocations: 3.943 MB / 357.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.5e-05/0.1464, allocations: 145.5 kB / 358 MB, free: 5.477 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004456/0.1469, allocations: 409.8 kB / 358.4 MB, free: 5.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.255e-05/0.147, allocations: 49.7 kB / 358.4 MB, free: 5.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.1473, allocations: 435.4 kB / 358.9 MB, free: 4.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003096/0.1476, allocations: 425.8 kB / 359.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.1476, allocations: 28 kB / 359.3 MB, free: 4.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.1478, allocations: 382.7 kB / 359.7 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006684/0.1485, allocations: 354.5 kB / 360 MB, free: 3.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008129/0.1493, allocations: 0.5762 MB / 360.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000775/0.1501, allocations: 440.3 kB / 361 MB, free: 2.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1501, allocations: 0 / 361 MB, free: 2.316 MB / 302.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002417/0.1525, allocations: 1.415 MB / 362.4 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1526, allocations: 8 kB / 362.4 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.1526, allocations: 8 kB / 362.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008244/0.1534, allocations: 347.1 kB / 362.8 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008584/0.1543, allocations: 207.7 kB / 363 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007533/0.1618, allocations: 7.79 MB / 370.8 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007015/0.1626, allocations: 52.05 kB / 370.8 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.1626, allocations: 55.97 kB / 370.9 MB, free: 7.883 MB / 318.1 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.0004507/0.1631, allocations: 257.6 kB / 371.1 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.1632, allocations: 71.16 kB / 371.2 MB, free: 7.551 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.1656, allocations: 1.293 MB / 372.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.1656, allocations: 12 kB / 372.5 MB, free: 6.227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.1657, allocations: 15.95 kB / 372.5 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.1657, allocations: 3.984 kB / 372.5 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003727/0.1694, allocations: 2.454 MB / 375 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.1694, allocations: 0 / 375 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006792/0.1701, allocations: 155.8 kB / 375.1 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007535/0.1709, allocations: 330.3 kB / 375.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.99e-05/0.171, allocations: 24.12 kB / 375.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1714/0.3423, allocations: 7.524 MB / 383 MB, free: 47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3424, allocations: 1.375 kB / 383 MB, free: 47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003246/0.3456, allocations: 1.795 MB / 384.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003033/0.3459, allocations: 222.6 kB / 385 MB, free: 46.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.255e-05/0.346, allocations: 23.22 kB / 385.1 MB, free: 46.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004693/0.3465, allocations: 42.11 kB / 385.1 MB, free: 46.69 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.3467, allocations: 97.27 kB / 385.2 MB, free: 46.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.869e-05/0.3468, allocations: 35.98 kB / 385.2 MB, free: 46.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002961/0.3471, allocations: 272.4 kB / 385.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3471, allocations: 0 / 385.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001183/0.3483, allocations: 317.3 kB / 385.8 MB, free: 46.6 MB / 318.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) * 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.003341/0.3516, allocations: 2.465 MB / 388.3 MB, free: 45.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.3543, allocations: 1.63 MB / 389.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.778e-06/0.3543, allocations: 1.156 kB / 389.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.3559, allocations: 1.147 MB / 391 MB, free: 43.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.3563, allocations: 57.89 kB / 391.1 MB, free: 43.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00475/0.3611, allocations: 6.576 MB / 397.7 MB, free: 38.11 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006177/0.3617, allocations: 1.044 MB / 398.7 MB, free: 37.4 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004982/0.3622, allocations: 105.1 kB / 398.8 MB, free: 37.37 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003823/0.3626, allocations: 349.9 kB / 399.2 MB, free: 37.09 MB / 318.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3626, allocations: 7.969 kB / 399.2 MB, free: 37.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.3902, allocations: 16.7 MB / 415.9 MB, free: 26.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.3904, allocations: 211.8 kB / 416.1 MB, free: 25.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.156/2.546, allocations: 8.062 kB / 416.1 MB, free: 25.94 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat