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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.002163/0.002163, allocations: 180.7 kB / 8.7 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.487/1.487, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008931/0.0008931, allocations: 83.47 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.446e-05/1.457e-05, allocations: 224 / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.09147, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3996/0.4911, allocations: 78.73 MB / 441.9 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.4914, allocations: 71.84 kB / 442 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01854/0.5099, allocations: 6.878 MB / 448.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.888e-06/0.51, allocations: 0 / 448.8 MB, free: 11.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.51, allocations: 11.94 kB / 448.9 MB, free: 11.16 MB / 330.7 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.0007944/0.5108, allocations: 0.5281 MB / 449.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.5109, allocations: 12.02 kB / 449.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.983e-05/0.5109, allocations: 31.62 kB / 449.4 MB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003651/0.5113, allocations: 260.3 kB / 449.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.5113, allocations: 11.95 kB / 449.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.5114, allocations: 16 kB / 449.7 MB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003017/0.5117, allocations: 176.5 kB / 449.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.5121, allocations: 200.4 kB / 450.1 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.5121, allocations: 0 / 450.1 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.58e-05/0.5121, allocations: 0 / 450.1 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.5121, allocations: 8 kB / 450.1 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001546/0.5137, allocations: 0.9529 MB / 451 MB, free: 9.137 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.514, allocations: 183 kB / 451.2 MB, free: 9.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000155/0.5142, allocations: 89.47 kB / 451.3 MB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.683e-05/0.5142, allocations: 11.5 kB / 451.3 MB, free: 8.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/0.5143, allocations: 38.55 kB / 451.4 MB, free: 8.891 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.412e-06/0.5143, allocations: 0 / 451.4 MB, free: 8.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.00328/0.5176, allocations: 1.096 MB / 452.4 MB, free: 7.918 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.5176, allocations: 59.39 kB / 452.5 MB, free: 7.848 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.5178, allocations: 180.2 kB / 452.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.5178, allocations: 25.7 kB / 452.7 MB, free: 7.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.518, allocations: 191.2 kB / 452.9 MB, free: 7.496 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.559e-05/0.518, allocations: 116.6 kB / 453 MB, free: 7.395 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/0.5181, allocations: 0 / 453 MB, free: 7.395 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.5182, allocations: 331.6 kB / 453.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.5183, allocations: 92.95 kB / 453.4 MB, free: 7.016 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.5185, allocations: 141 kB / 453.6 MB, free: 6.902 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.5187, allocations: 106.5 kB / 453.7 MB, free: 6.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.5187, allocations: 3.953 kB / 453.7 MB, free: 6.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001345/0.5201, allocations: 493 kB / 454.1 MB, free: 6.445 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.5201, allocations: 8 kB / 454.2 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.5201, allocations: 7.953 kB / 454.2 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007895/0.5209, allocations: 185.3 kB / 454.3 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.5212, allocations: 55.22 kB / 454.4 MB, free: 6.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004072/0.5253, allocations: 3.617 MB / 458 MB, free: 2.879 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/0.5255, allocations: 4.031 kB / 458 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.515e-05/0.5256, allocations: 11.98 kB / 458 MB, free: 2.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.0001148/0.5257, allocations: 116.9 kB / 458.1 MB, free: 2.742 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001295/0.527, allocations: 430.2 kB / 458.6 MB, free: 2.398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.424e-05/0.527, allocations: 31 kB / 458.6 MB, free: 2.371 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.473e-05/0.5271, allocations: 37.7 kB / 458.6 MB, free: 2.352 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.5272, allocations: 4 kB / 458.6 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.5272, allocations: 0 / 458.6 MB, free: 2.348 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.5272, allocations: 7.969 kB / 458.6 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001773/0.529, allocations: 0.863 MB / 459.5 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.529, allocations: 8.234 kB / 459.5 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.5292, allocations: 44 kB / 459.6 MB, free: 1.555 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007261/0.5299, allocations: 184.3 kB / 459.7 MB, free: 1.402 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.119e-05/0.53, allocations: 4 kB / 459.7 MB, free: 1.398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004101/0.5341, allocations: 3.613 MB / 463.4 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.5341, allocations: 8.094 kB / 463.4 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.5357, allocations: 0.6754 MB / 464 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.528e-05/0.5358, allocations: 100.8 kB / 464.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.5358, allocations: 0 / 464.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.536, allocations: 11.98 kB / 464.1 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.407e-05/0.5361, allocations: 31.33 kB / 464.2 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.5362, allocations: 7.75 kB / 464.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001399/0.5363, allocations: 152.9 kB / 464.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5363, allocations: 0 / 464.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006154/0.5369, allocations: 88 kB / 464.4 MB, free: 13.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete 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.001926/0.5389, allocations: 1.301 MB / 465.7 MB, free: 11.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007752/0.5397, allocations: 0.502 MB / 466.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5397, allocations: 0 / 466.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004226/0.5401, allocations: 392.6 kB / 466.6 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.5404, allocations: 27.62 kB / 466.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.5415, allocations: 485.5 kB / 467.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.5418, allocations: 0.784 MB / 467.9 MB, free: 9.891 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.985e-05/0.542, allocations: 22.06 kB / 467.9 MB, free: 9.867 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.5421, allocations: 89.16 kB / 468 MB, free: 9.844 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5421, allocations: 4 kB / 468 MB, free: 9.84 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.5692, allocations: 7.166 MB / 475.2 MB, free: 2.684 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000186/0.5694, allocations: 154.7 kB / 475.3 MB, free: 2.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.705, allocations: 3.938 kB / 475.3 MB, free: 2.477 MB / 346.7 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) 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