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.0009824/0.0009826, allocations: 94.92 kB / 16.94 MB, free: 5.98 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.0008684/0.0008685, allocations: 179 kB / 17.82 MB, free: 5.652 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.37/1.37, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004569/0.0004569, allocations: 15.44 kB / 280.8 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 47.58 MB / 328.4 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.002896/0.1109, allocations: 2.155 MB / 330.6 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.1121, allocations: 0.8155 MB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.1123, allocations: 11.94 kB / 331.4 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1124, allocations: 39.73 kB / 331.4 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002539/0.1127, allocations: 107.7 kB / 331.5 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002002/0.1129, allocations: 63.88 kB / 331.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003065/0.1132, allocations: 239.5 kB / 331.8 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001607/0.1134, allocations: 77.67 kB / 331.9 MB, free: 496 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.1136, allocations: 119.6 kB / 332 MB, free: 376 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.1137, allocations: 131.4 kB / 332.2 MB, free: 244 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.1138, allocations: 12 kB / 332.2 MB, free: 232 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.813e-05/0.1138, allocations: 16 kB / 332.2 MB, free: 216 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.66e-05/0.1139, allocations: 51.77 kB / 332.2 MB, free: 164 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.259e-05/0.1139, allocations: 77.58 kB / 332.3 MB, free: 80 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002555/0.1142, allocations: 267.5 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.1142, allocations: 3.938 kB / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.1142, allocations: 0 / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.1142, allocations: 4 kB / 332.6 MB, free: 15.81 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.0009717/0.1152, allocations: 0.5534 MB / 333.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.1153, allocations: 8.031 kB / 333.1 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.149e-05/0.1154, allocations: 58.55 kB / 333.2 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.186e-05/0.1154, allocations: 43.53 kB / 333.2 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003304/0.1158, allocations: 246.3 kB / 333.5 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.637e-05/0.1158, allocations: 24.52 kB / 333.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.19e-05/0.1159, allocations: 28 kB / 333.5 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.1164, allocations: 244.9 kB / 333.8 MB, free: 14.51 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.1164, allocations: 4 kB / 333.8 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.995e-05/0.1164, allocations: 12 kB / 333.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1165, allocations: 4 kB / 333.8 MB, free: 14.49 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004616/0.1169, allocations: 222.1 kB / 334 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.1186, allocations: 1.013 MB / 335 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004234/0.119, allocations: 210.4 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.119, allocations: 4 kB / 335.2 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.1191, allocations: 34.56 kB / 335.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.1191, allocations: 4 kB / 335.3 MB, free: 12.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=34): time 0.004716/0.1238, allocations: 1.495 MB / 336.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.1239, allocations: 55.41 kB / 336.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002377/0.1241, allocations: 228.9 kB / 337 MB, free: 11.03 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.1242, allocations: 29.7 kB / 337.1 MB, free: 11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.1243, allocations: 180.2 kB / 337.3 MB, free: 10.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.363e-05/0.1244, allocations: 118.2 kB / 337.4 MB, free: 10.7 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.1244, allocations: 12 kB / 337.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.1245, allocations: 338.7 kB / 337.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.1248, allocations: 111.9 kB / 337.8 MB, free: 10.24 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.1251, allocations: 156.5 kB / 338 MB, free: 10.07 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002552/0.1253, allocations: 133.5 kB / 338.1 MB, free: 9.938 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.1254, allocations: 0 / 338.1 MB, free: 9.938 MB / 286.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001474/0.1268, allocations: 0.5357 MB / 338.6 MB, free: 9.391 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1269, allocations: 4 kB / 338.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.1269, allocations: 0 / 338.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001361/0.1282, allocations: 257.4 kB / 338.9 MB, free: 9.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/0.1285, allocations: 51.91 kB / 338.9 MB, free: 9.078 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004686/0.1332, allocations: 3.803 MB / 342.7 MB, free: 5.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.1335, allocations: 12 kB / 342.8 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.1336, allocations: 11.98 kB / 342.8 MB, free: 4.98 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 (28): * Single equations (assignments): 26 * 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.0002206/0.1338, allocations: 153.8 kB / 342.9 MB, free: 4.82 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.825e-05/0.1338, allocations: 27.62 kB / 342.9 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.085e-05/0.1339, allocations: 38.95 kB / 343 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.134, allocations: 4 kB / 343 MB, free: 4.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.134, allocations: 7.953 kB / 343 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.134, allocations: 0 / 343 MB, free: 4.742 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004279/0.1344, allocations: 377.3 kB / 343.4 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1344, allocations: 0 / 343.4 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.1346, allocations: 43.97 kB / 343.4 MB, free: 4.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.1359, allocations: 249.4 kB / 343.7 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.136, allocations: 7.984 kB / 343.7 MB, free: 4.023 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004231/0.1402, allocations: 3.69 MB / 347.3 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1402, allocations: 4 kB / 347.4 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.142, allocations: 0.7192 MB / 348.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.86e-05/0.1421, allocations: 100.8 kB / 348.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.1421, allocations: 4 kB / 348.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.1423, allocations: 19.92 kB / 348.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.1424, allocations: 31.91 kB / 348.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.1425, allocations: 16.06 kB / 348.2 MB, free: 15.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.1426, allocations: 160.5 kB / 348.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1426, allocations: 0 / 348.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005761/0.1432, allocations: 108 kB / 348.5 MB, free: 14.87 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * 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.002074/0.1453, allocations: 1.249 MB / 349.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.1463, allocations: 0.5714 MB / 350.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1463, allocations: 0 / 350.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005429/0.1469, allocations: 421.2 kB / 350.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.1471, allocations: 24.62 kB / 350.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003817/0.151, allocations: 2.602 MB / 353.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1513, allocations: 0.7841 MB / 354.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.65e-05/0.1514, allocations: 30.22 kB / 354.2 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.1516, allocations: 91.39 kB / 354.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1516, allocations: 0 / 354.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0217/0.1733, allocations: 7.67 MB / 361.9 MB, free: 1.262 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/0.1736, allocations: 219.8 kB / 362.1 MB, free: 1.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.911/2.085, allocations: 64 / 362.1 MB, free: 1.02 MB / 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