Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,fileNamePrefix="Modelica_3_2_3_cpp_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.001567/0.001567, allocations: 182.6 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.204/2.204, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 104.4 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004121/0.0004122, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3727, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003468/0.3762, allocations: 2.156 MB / 376.8 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.3786, allocations: 0.816 MB / 377.6 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002817/0.3789, allocations: 4.25 kB / 377.6 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002076/0.3792, allocations: 49.14 kB / 377.6 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004048/0.3796, allocations: 97.81 kB / 377.7 MB, free: 42.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.3799, allocations: 81.33 kB / 377.8 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003934/0.3803, allocations: 222.6 kB / 378 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.3806, allocations: 85.89 kB / 378.1 MB, free: 42.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002466/0.3809, allocations: 115.6 kB / 378.2 MB, free: 42.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.3811, allocations: 132.4 kB / 378.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.088e-05/0.3812, allocations: 15.06 kB / 378.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.158e-05/0.3813, allocations: 16.12 kB / 378.4 MB, free: 42.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.907e-05/0.3813, allocations: 48.39 kB / 378.4 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.687e-05/0.3814, allocations: 75.52 kB / 378.5 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003186/0.3817, allocations: 271.7 kB / 378.8 MB, free: 42.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.3818, allocations: 4 kB / 378.8 MB, free: 42.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.3818, allocations: 0 / 378.8 MB, free: 42.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3818, allocations: 0 / 378.8 MB, free: 42.29 MB / 298.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.001251/0.383, allocations: 0.5578 MB / 379.3 MB, free: 41.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.3831, allocations: 12.38 kB / 379.4 MB, free: 41.78 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.954e-05/0.3832, allocations: 60.08 kB / 379.4 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.3833, allocations: 35.67 kB / 379.5 MB, free: 41.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000344/0.3836, allocations: 243.9 kB / 379.7 MB, free: 41.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.468e-05/0.3837, allocations: 27.45 kB / 379.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.745e-05/0.3838, allocations: 25.38 kB / 379.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007701/0.3846, allocations: 252.6 kB / 380 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3846, allocations: 1.188 kB / 380 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.3846, allocations: 10.38 kB / 380 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.16e-05/0.3847, allocations: 6.531 kB / 380 MB, free: 41.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007773/0.3854, allocations: 216 kB / 380.2 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002408/0.3879, allocations: 1.02 MB / 381.2 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007132/0.3886, allocations: 206.4 kB / 381.4 MB, free: 40.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.3887, allocations: 6.469 kB / 381.4 MB, free: 40.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.3887, allocations: 35.88 kB / 381.5 MB, free: 40.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 3.858e-06/0.3888, allocations: 1.375 kB / 381.5 MB, free: 40.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.008345/0.3971, allocations: 1.501 MB / 383 MB, free: 39.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.3972, allocations: 54.5 kB / 383 MB, free: 39.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.3976, allocations: 223.8 kB / 383.3 MB, free: 38.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/0.3976, allocations: 30.73 kB / 383.3 MB, free: 38.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.3978, allocations: 246.2 kB / 383.5 MB, free: 38.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.3979, allocations: 112.9 kB / 383.6 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.791e-05/0.3979, allocations: 5.406 kB / 383.6 MB, free: 38.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.306e-05/0.398, allocations: 333.3 kB / 384 MB, free: 38.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.3984, allocations: 112 kB / 384.1 MB, free: 38.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/0.3989, allocations: 161.9 kB / 384.2 MB, free: 38.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004515/0.3994, allocations: 125.6 kB / 384.4 MB, free: 38.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3994, allocations: 7.984 kB / 384.4 MB, free: 38.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0028/0.4022, allocations: 0.5271 MB / 384.9 MB, free: 37.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.4023, allocations: 5.344 kB / 384.9 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.4023, allocations: 0.9688 kB / 384.9 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002595/0.4049, allocations: 253.9 kB / 385.1 MB, free: 37.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.4055, allocations: 54.62 kB / 385.2 MB, free: 37.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006566/0.4121, allocations: 3.804 MB / 389 MB, free: 33.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.4126, allocations: 12.03 kB / 389 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.4127, allocations: 15.98 kB / 389 MB, free: 33.79 MB / 298.7 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.0002324/0.4129, allocations: 149.8 kB / 389.2 MB, free: 33.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.522e-05/0.413, allocations: 27.72 kB / 389.2 MB, free: 33.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.4131, allocations: 42.95 kB / 389.2 MB, free: 33.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.4131, allocations: 4 kB / 389.2 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.4132, allocations: 3.953 kB / 389.3 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.4132, allocations: 0 / 389.3 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000565/0.4138, allocations: 377.4 kB / 389.6 MB, free: 33.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.4138, allocations: 7.922 kB / 389.6 MB, free: 33.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000389/0.4142, allocations: 43.92 kB / 389.7 MB, free: 33.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002405/0.4166, allocations: 245.5 kB / 389.9 MB, free: 32.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.093e-05/0.4167, allocations: 15.98 kB / 389.9 MB, free: 32.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005962/0.4227, allocations: 3.679 MB / 393.6 MB, free: 28.88 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.4227, allocations: 0 / 393.6 MB, free: 28.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/0.4257, allocations: 0.7347 MB / 394.3 MB, free: 28.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.4259, allocations: 96.86 kB / 394.4 MB, free: 28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.794e-05/0.426, allocations: 11.98 kB / 394.4 MB, free: 27.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003785/0.4264, allocations: 16.05 kB / 394.5 MB, free: 27.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/0.4266, allocations: 35.91 kB / 394.5 MB, free: 27.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.4266, allocations: 4 kB / 394.5 MB, free: 27.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001895/0.4268, allocations: 168.5 kB / 394.7 MB, free: 27.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4268, allocations: 0 / 394.7 MB, free: 27.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008138/0.4276, allocations: 100 kB / 394.8 MB, free: 27.68 MB / 298.7 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.003213/0.4309, allocations: 1.257 MB / 396 MB, free: 26.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.4324, allocations: 0.5713 MB / 396.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4324, allocations: 0 / 396.6 MB, free: 25.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.4332, allocations: 425.4 kB / 397 MB, free: 25.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.4336, allocations: 28.38 kB / 397 MB, free: 25.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005713/0.4394, allocations: 2.614 MB / 399.6 MB, free: 22.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.4397, allocations: 0.784 MB / 400.4 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002152/0.44, allocations: 99.39 kB / 400.5 MB, free: 21.72 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/0.44, allocations: 4 kB / 400.5 MB, free: 21.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.851/3.291, allocations: 6.921 MB / 407.5 MB, free: 14.79 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_SaturatedInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat