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.001067/0.001067, allocations: 91.36 kB / 16.95 MB, free: 6.449 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.001234/0.001234, allocations: 181.9 kB / 17.84 MB, free: 6.008 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.572/1.572, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004676/0.0004676, allocations: 15.98 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1019, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006972/0.1089, allocations: 5.566 MB / 334 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00486/0.1138, allocations: 2.323 MB / 336.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004714/0.1143, allocations: 20 kB / 336.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008041/0.1152, allocations: 278.5 kB / 336.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001501/0.1167, allocations: 0.5676 MB / 337.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.1186, allocations: 0.8921 MB / 338.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.1197, allocations: 1.001 MB / 339.1 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001993/0.1217, allocations: 1.183 MB / 340.3 MB, free: 8.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005205/0.1222, allocations: 370.5 kB / 340.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006131/0.1229, allocations: 481.9 kB / 341.1 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.541e-05/0.123, allocations: 48 kB / 341.2 MB, free: 7.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007716/0.1237, allocations: 339.6 kB / 341.5 MB, free: 6.828 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.1239, allocations: 175.2 kB / 341.7 MB, free: 6.656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.1241, allocations: 201.2 kB / 341.9 MB, free: 6.453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001097/0.1252, allocations: 1.126 MB / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1252, allocations: 4 kB / 343 MB, free: 5.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1252, allocations: 0 / 343 MB, free: 5.32 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.1253, allocations: 4 kB / 343 MB, free: 5.316 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.003698/0.129, allocations: 1.468 MB / 344.5 MB, free: 3.797 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.129, allocations: 8.031 kB / 344.5 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002536/0.1293, allocations: 183.5 kB / 344.7 MB, free: 3.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00364/0.1329, allocations: 0.5763 MB / 345.2 MB, free: 3.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006633/0.1336, allocations: 489.4 kB / 345.7 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.286e-05/0.1337, allocations: 90.3 kB / 345.8 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.1339, allocations: 111.9 kB / 345.9 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.1357, allocations: 1.011 MB / 346.9 MB, free: 1.262 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/0.1358, allocations: 7.938 kB / 346.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.336e-05/0.1359, allocations: 44 kB / 347 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.1359, allocations: 28 kB / 347 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001924/0.1378, allocations: 1.044 MB / 348 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006034/0.1439, allocations: 3.879 MB / 351.9 MB, free: 12.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.1463, allocations: 2.072 MB / 354 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008415/0.1472, allocations: 436.3 kB / 354.4 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.1473, allocations: 102.1 kB / 354.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008279/0.1482, allocations: 474.5 kB / 355 MB, free: 8.652 MB / 302.1 MB Notification: Performance of pre-optimization done (n=98): time 2.635e-06/0.1482, allocations: 0 / 355 MB, free: 8.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=127): time 0.008471/0.1567, allocations: 4.06 MB / 359 MB, free: 4.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.1568, allocations: 145.5 kB / 359.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004709/0.1573, allocations: 409.8 kB / 359.6 MB, free: 3.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.21e-05/0.1573, allocations: 45.7 kB / 359.6 MB, free: 3.844 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003274/0.1577, allocations: 439.5 kB / 360.1 MB, free: 3.406 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003408/0.158, allocations: 433.7 kB / 360.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.406e-05/0.1581, allocations: 31.94 kB / 360.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.1583, allocations: 382.8 kB / 360.9 MB, free: 2.562 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006721/0.1589, allocations: 358.5 kB / 361.2 MB, free: 2.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008438/0.1598, allocations: 0.5799 MB / 361.8 MB, free: 1.547 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007854/0.1606, allocations: 450.6 kB / 362.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.1606, allocations: 8 kB / 362.3 MB, free: 1.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.002442/0.1631, allocations: 1.417 MB / 363.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1631, allocations: 8 kB / 363.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/0.1631, allocations: 4 kB / 363.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008398/0.164, allocations: 363 kB / 364 MB, free: 15.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008257/0.1648, allocations: 219.7 kB / 364.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00763/0.1724, allocations: 7.728 MB / 372 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008178/0.1733, allocations: 47.98 kB / 372 MB, free: 6.758 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.1734, allocations: 51.98 kB / 372.1 MB, free: 6.707 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 (122): * Single equations (assignments): 118 * 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.0005323/0.1739, allocations: 269.3 kB / 372.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.174, allocations: 79.12 kB / 372.4 MB, free: 6.355 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/0.1766, allocations: 1.321 MB / 373.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.1766, allocations: 12 kB / 373.8 MB, free: 5.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.1766, allocations: 8 kB / 373.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.1766, allocations: 3.984 kB / 373.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004002/0.1806, allocations: 2.573 MB / 376.3 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/0.1807, allocations: 4.125 kB / 376.3 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006371/0.1813, allocations: 163.9 kB / 376.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007627/0.1821, allocations: 323.1 kB / 376.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.899e-05/0.1821, allocations: 27.95 kB / 376.9 MB, free: 1.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2149/0.397, allocations: 7.423 MB / 384.3 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.3971, allocations: 6.625 kB / 384.3 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.4002, allocations: 1.828 MB / 386.1 MB, free: 45.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003189/0.4006, allocations: 225.7 kB / 386.3 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.614e-05/0.4007, allocations: 27.7 kB / 386.4 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004496/0.4012, allocations: 36.88 kB / 386.4 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.4014, allocations: 103.5 kB / 386.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/0.4015, allocations: 39.58 kB / 386.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003086/0.4018, allocations: 271.2 kB / 386.8 MB, free: 45.5 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.372e-06/0.4018, allocations: 1.031 kB / 386.8 MB, free: 45.5 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001262/0.403, allocations: 326.1 kB / 387.1 MB, free: 45.44 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (87): * Single equations (assignments): 82 * 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,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003441/0.4065, allocations: 2.441 MB / 389.6 MB, free: 44.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002711/0.4092, allocations: 1.643 MB / 391.2 MB, free: 43.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4093, allocations: 1.188 kB / 391.2 MB, free: 43.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001605/0.4109, allocations: 1.146 MB / 392.3 MB, free: 42.38 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.4115, allocations: 74.47 kB / 392.4 MB, free: 42.34 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00833/0.4199, allocations: 5.305 MB / 397.7 MB, free: 39.44 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007121/0.4206, allocations: 1.031 MB / 398.8 MB, free: 38.72 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005489/0.4212, allocations: 100 kB / 398.9 MB, free: 38.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004223/0.4216, allocations: 357.4 kB / 399.2 MB, free: 38.41 MB / 318.1 MB Notification: Performance of SimCode: time 1.362e-06/0.4216, allocations: 0 / 399.2 MB, free: 38.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03393/0.4556, allocations: 16.94 MB / 416.1 MB, free: 25.72 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002933/0.4559, allocations: 224.7 kB / 416.4 MB, free: 25.48 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.861, allocations: 0 / 416.4 MB, free: 25.48 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