Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.00153/0.001535, allocations: 183.9 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.955/1.955, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001158/0.001158, allocations: 100 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000392/0.000392, allocations: 8 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3182, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003238/0.3215, allocations: 2.148 MB / 376.8 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002326/0.3239, allocations: 1.081 MB / 377.9 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.3241, allocations: 6.344 kB / 377.9 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.3245, allocations: 101.9 kB / 378 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004393/0.325, allocations: 122.2 kB / 378.1 MB, free: 42.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.3266, allocations: 0.5419 MB / 378.6 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005453/0.3271, allocations: 209.6 kB / 378.8 MB, free: 42.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.3284, allocations: 0.5219 MB / 379.4 MB, free: 41.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.3287, allocations: 100.7 kB / 379.5 MB, free: 41.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.3289, allocations: 129 kB / 379.6 MB, free: 41.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.688e-05/0.329, allocations: 12.25 kB / 379.6 MB, free: 41.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005248/0.3295, allocations: 150.1 kB / 379.7 MB, free: 41.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.772e-05/0.3296, allocations: 42.08 kB / 379.8 MB, free: 41.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.497e-05/0.3297, allocations: 76.64 kB / 379.9 MB, free: 41.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005885/0.3303, allocations: 362 kB / 380.2 MB, free: 41.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.3303, allocations: 0 / 380.2 MB, free: 41.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3303, allocations: 1.125 kB / 380.2 MB, free: 41.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.3303, allocations: 0 / 380.2 MB, free: 41.28 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002082/0.3324, allocations: 0.6706 MB / 380.9 MB, free: 40.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3325, allocations: 10.38 kB / 380.9 MB, free: 40.71 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.402e-05/0.3326, allocations: 71.81 kB / 381 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001143/0.3337, allocations: 122.8 kB / 381.1 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.3341, allocations: 266.7 kB / 381.3 MB, free: 40.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/0.3342, allocations: 29.27 kB / 381.4 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.445e-05/0.3343, allocations: 29 kB / 381.4 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007588/0.335, allocations: 329.1 kB / 381.7 MB, free: 40.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/0.3351, allocations: 1.344 kB / 381.7 MB, free: 40.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.227e-05/0.3351, allocations: 15.12 kB / 381.7 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3351, allocations: 7.438 kB / 381.7 MB, free: 40.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006251/0.3358, allocations: 242.3 kB / 382 MB, free: 39.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002656/0.3384, allocations: 1.446 MB / 383.4 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.3393, allocations: 0.7017 MB / 384.1 MB, free: 37.93 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.3395, allocations: 90.75 kB / 384.2 MB, free: 37.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.3395, allocations: 32 kB / 384.2 MB, free: 37.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.374e-06/0.3395, allocations: 0 / 384.2 MB, free: 37.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001837/0.3414, allocations: 494.2 kB / 384.7 MB, free: 37.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.929e-05/0.3414, allocations: 54.03 kB / 384.8 MB, free: 37.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.3417, allocations: 171.1 kB / 384.9 MB, free: 37.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.3417, allocations: 33.64 kB / 385 MB, free: 37.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.554e-05/0.3418, allocations: 243 kB / 385.2 MB, free: 37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.444e-05/0.3419, allocations: 88.98 kB / 385.3 MB, free: 36.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.799e-05/0.3419, allocations: 5.219 kB / 385.3 MB, free: 36.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.221e-05/0.342, allocations: 322 kB / 385.6 MB, free: 36.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.3422, allocations: 70 kB / 385.7 MB, free: 36.56 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.3424, allocations: 122.6 kB / 385.8 MB, free: 36.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002274/0.3427, allocations: 91.16 kB / 385.9 MB, free: 36.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3427, allocations: 0 / 385.9 MB, free: 36.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008683/0.3436, allocations: 315.8 kB / 386.2 MB, free: 36.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.3436, allocations: 11.25 kB / 386.2 MB, free: 36.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3436, allocations: 2.312 kB / 386.2 MB, free: 36.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004564/0.3441, allocations: 73.92 kB / 386.3 MB, free: 36.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002964/0.3444, allocations: 45.95 kB / 386.3 MB, free: 36.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.3468, allocations: 1.86 MB / 388.2 MB, free: 34.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.3471, allocations: 27.75 kB / 388.2 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.87e-05/0.3472, allocations: 7.281 kB / 388.2 MB, free: 34.45 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.3474, allocations: 147.6 kB / 388.4 MB, free: 34.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.527e-05/0.3474, allocations: 20.27 kB / 388.4 MB, free: 34.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008009/0.3483, allocations: 297.6 kB / 388.7 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.3483, allocations: 2.25 kB / 388.7 MB, free: 34.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.3483, allocations: 6.406 kB / 388.7 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3483, allocations: 0 / 388.7 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/0.3496, allocations: 0.6891 MB / 389.4 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3496, allocations: 3.938 kB / 389.4 MB, free: 33.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002096/0.3498, allocations: 27.98 kB / 389.4 MB, free: 33.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000369/0.3502, allocations: 68.81 kB / 389.5 MB, free: 33.26 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3502, allocations: 8 kB / 389.5 MB, free: 33.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002171/0.3524, allocations: 1.854 MB / 391.3 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3524, allocations: 0 / 391.3 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008867/0.3533, allocations: 448.4 kB / 391.8 MB, free: 30.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.3535, allocations: 112.9 kB / 391.9 MB, free: 30.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.659e-05/0.3535, allocations: 8.562 kB / 391.9 MB, free: 30.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.3537, allocations: 4 kB / 391.9 MB, free: 30.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.3538, allocations: 19.97 kB / 391.9 MB, free: 30.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.3538, allocations: 8 kB / 391.9 MB, free: 30.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001109/0.3539, allocations: 127.5 kB / 392.1 MB, free: 30.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3539, allocations: 0 / 392.1 MB, free: 30.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007077/0.3546, allocations: 103.7 kB / 392.2 MB, free: 30.41 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * 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 (15): * Single equations (assignments): 14 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.3558, allocations: 0.9984 MB / 393.2 MB, free: 29.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007931/0.3567, allocations: 342.4 kB / 393.5 MB, free: 29.03 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3567, allocations: 448 / 393.5 MB, free: 29.03 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004348/0.3571, allocations: 254.3 kB / 393.7 MB, free: 28.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.3574, allocations: 12 kB / 393.8 MB, free: 28.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.3603, allocations: 2.531 MB / 396.3 MB, free: 26.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.3606, allocations: 0.7635 MB / 397.1 MB, free: 25.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3608, allocations: 71.41 kB / 397.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.3608, allocations: 0 / 397.1 MB, free: 25.28 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.943/3.303, allocations: 4.929 MB / 402 MB, free: 20.35 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat