Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.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.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",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.001287/0.001288, allocations: 90.61 kB / 16.95 MB, free: 6.453 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.001707/0.001707, allocations: 181.2 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.661/1.661, 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.0004864/0.0004864, allocations: 8 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1229, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.002983/0.126, allocations: 2.259 MB / 330.7 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.1272, allocations: 0.7998 MB / 331.5 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.1274, allocations: 11.94 kB / 331.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.1276, allocations: 43.69 kB / 331.6 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.1279, allocations: 87.38 kB / 331.6 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.1281, allocations: 75.91 kB / 331.7 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003341/0.1284, allocations: 318.7 kB / 332 MB, free: 376 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.1286, allocations: 85.67 kB / 332.1 MB, free: 296 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.1288, allocations: 111.5 kB / 332.2 MB, free: 184 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001836/0.129, allocations: 131.4 kB / 332.3 MB, free: 52 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.129, allocations: 20 kB / 332.4 MB, free: 32 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.761e-05/0.1291, allocations: 16 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.29e-05/0.1291, allocations: 51.84 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.081e-05/0.1292, allocations: 77.58 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002477/0.1295, allocations: 255.4 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1295, allocations: 4 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1295, allocations: 0 / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1295, allocations: 0 / 332.8 MB, free: 15.63 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.000883/0.1304, allocations: 0.5612 MB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1305, allocations: 8.031 kB / 333.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.967e-05/0.1305, allocations: 62.53 kB / 333.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.125e-05/0.1306, allocations: 35.53 kB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.1309, allocations: 258.3 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.1309, allocations: 20.52 kB / 333.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.131, allocations: 28 kB / 333.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004831/0.1315, allocations: 244.9 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.1315, allocations: 0 / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.1315, allocations: 12 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1316, allocations: 8 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.132, allocations: 222.1 kB / 334.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.1335, allocations: 1.017 MB / 335.2 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004034/0.1339, allocations: 210.4 kB / 335.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.1341, allocations: 112.8 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.1342, allocations: 4.062 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.1342, allocations: 38.56 kB / 335.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.352e-06/0.1342, allocations: 0 / 335.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.00452/0.1387, allocations: 1.55 MB / 337.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.1388, allocations: 55.41 kB / 337.2 MB, free: 10.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.139, allocations: 220.9 kB / 337.4 MB, free: 10.67 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/0.139, allocations: 33.7 kB / 337.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1392, allocations: 180.1 kB / 337.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.1393, allocations: 122.3 kB / 337.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.1393, allocations: 4 kB / 337.7 MB, free: 10.33 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1395, allocations: 342.8 kB / 338.1 MB, free: 9.984 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.1397, allocations: 108.7 kB / 338.2 MB, free: 9.875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.14, allocations: 169.4 kB / 338.3 MB, free: 9.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.1403, allocations: 131.8 kB / 338.5 MB, free: 9.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1403, allocations: 0 / 338.5 MB, free: 9.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001418/0.1417, allocations: 0.5372 MB / 339 MB, free: 9.016 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.717e-05/0.1418, allocations: 7.938 kB / 339 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.1418, allocations: 0 / 339 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.1431, allocations: 253.5 kB / 339.3 MB, free: 8.754 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.1434, allocations: 63.89 kB / 339.3 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004742/0.1481, allocations: 3.756 MB / 343.1 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.1484, allocations: 12.03 kB / 343.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.1484, allocations: 12 kB / 343.1 MB, free: 4.645 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001995/0.1486, allocations: 149.8 kB / 343.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.1487, allocations: 27.7 kB / 343.3 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.1488, allocations: 38.97 kB / 343.3 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1488, allocations: 7.953 kB / 343.3 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.1488, allocations: 0 / 343.3 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.1488, allocations: 3.984 kB / 343.3 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.1509, allocations: 0.9884 MB / 344.3 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.151, allocations: 0 / 344.3 MB, free: 3.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.1512, allocations: 39.92 kB / 344.4 MB, free: 3.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.1524, allocations: 253.5 kB / 344.6 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.1524, allocations: 7.984 kB / 344.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004214/0.1566, allocations: 3.732 MB / 348.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1567, allocations: 4.125 kB / 348.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.1584, allocations: 0.7292 MB / 349.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.386e-05/0.1585, allocations: 108.7 kB / 349.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.443e-05/0.1585, allocations: 8 kB / 349.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.1587, allocations: 15.98 kB / 349.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.623e-05/0.1588, allocations: 32.02 kB / 349.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1588, allocations: 8 kB / 349.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.159, allocations: 164.5 kB / 349.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.159, allocations: 4 kB / 349.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005774/0.1596, allocations: 103.9 kB / 349.5 MB, free: 13.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002102/0.1617, allocations: 1.285 MB / 350.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1627, allocations: 0.5635 MB / 351.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.401e-06/0.1627, allocations: 8 kB / 351.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006015/0.1634, allocations: 429.5 kB / 351.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1637, allocations: 20.44 kB / 351.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.1675, allocations: 2.021 MB / 353.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.1679, allocations: 0.7798 MB / 354.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.168, allocations: 18.28 kB / 354.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001364/0.1682, allocations: 91.39 kB / 354.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1682, allocations: 4 kB / 354.7 MB, free: 8.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02199/0.1902, allocations: 7.728 MB / 362.4 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001622/0.1904, allocations: 229 kB / 362.7 MB, free: 480 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.311/2.502, allocations: 4 kB / 362.7 MB, free: 476 kB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat