Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.001578/0.001582, allocations: 182.3 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 2.014/2.014, 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.001206/0.001206, allocations: 91.33 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003989, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3462, allocations: 47.56 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005575/0.3518, allocations: 2.716 MB / 377.3 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004014/0.3559, allocations: 1.319 MB / 378.7 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004127/0.3564, allocations: 6 kB / 378.7 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006526/0.3629, allocations: 2.106 MB / 380.8 MB, free: 41.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.3641, allocations: 169.8 kB / 380.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00144/0.3656, allocations: 237.6 kB / 381.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004582/0.3702, allocations: 1.466 MB / 382.6 MB, free: 40.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004846/0.3708, allocations: 110.8 kB / 382.8 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000914/0.3717, allocations: 287.8 kB / 383 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007515/0.3725, allocations: 294.5 kB / 383.3 MB, free: 40.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002126/0.3727, allocations: 27.28 kB / 383.3 MB, free: 40.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003591/0.3731, allocations: 38.84 kB / 383.4 MB, free: 40.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001094/0.3742, allocations: 0.8376 MB / 384.2 MB, free: 39.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00045/0.3747, allocations: 384.3 kB / 384.6 MB, free: 38.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003491/0.3782, allocations: 2.079 MB / 386.7 MB, free: 36.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3782, allocations: 0 / 386.7 MB, free: 36.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.368e-06/0.3782, allocations: 0 / 386.7 MB, free: 36.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.762e-05/0.3783, allocations: 3.938 kB / 386.7 MB, free: 36.77 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.007554/0.3859, allocations: 2.434 MB / 389.1 MB, free: 34.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.462e-05/0.386, allocations: 16.03 kB / 389.1 MB, free: 34.26 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002445/0.3862, allocations: 78.53 kB / 389.2 MB, free: 34.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.3873, allocations: 280.3 kB / 389.5 MB, free: 33.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006158/0.3935, allocations: 1.693 MB / 391.2 MB, free: 32.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.3937, allocations: 58.7 kB / 391.2 MB, free: 32.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004158/0.3941, allocations: 43.98 kB / 391.3 MB, free: 32.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.3957, allocations: 387 kB / 391.7 MB, free: 31.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.654e-05/0.3958, allocations: 4 kB / 391.7 MB, free: 31.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.471e-05/0.3959, allocations: 12 kB / 391.7 MB, free: 31.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.3959, allocations: 12 kB / 391.7 MB, free: 31.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.3976, allocations: 335.7 kB / 392 MB, free: 31.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009611/0.4073, allocations: 2.915 MB / 394.9 MB, free: 28.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001457/0.4088, allocations: 319.3 kB / 395.2 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.771e-05/0.4089, allocations: 4 kB / 395.2 MB, free: 27.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.409, allocations: 46.5 kB / 395.3 MB, free: 27.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 4.699e-06/0.409, allocations: 0 / 395.3 MB, free: 27.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.01121/0.4203, allocations: 2.375 MB / 397.7 MB, free: 25.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.4204, allocations: 85.5 kB / 397.7 MB, free: 25.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/0.4347, allocations: 5.439 MB / 403.2 MB, free: 19.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.45e-05/0.4348, allocations: 33.7 kB / 403.2 MB, free: 19.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.436, allocations: 0.948 MB / 404.2 MB, free: 18.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.4361, allocations: 165.5 kB / 404.3 MB, free: 18.76 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.4362, allocations: 11.94 kB / 404.3 MB, free: 18.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.522e-05/0.4363, allocations: 330.8 kB / 404.7 MB, free: 18.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006152/0.4369, allocations: 141.1 kB / 404.8 MB, free: 18.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007295/0.4376, allocations: 225.6 kB / 405 MB, free: 18.03 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000763/0.4384, allocations: 164.8 kB / 405.2 MB, free: 17.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.4385, allocations: 4 kB / 405.2 MB, free: 17.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00177/0.4402, allocations: 447.7 kB / 405.6 MB, free: 17.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.4403, allocations: 8 kB / 405.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4403, allocations: 0 / 405.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.349e-05/0.4404, allocations: 8 kB / 405.6 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.4416, allocations: 120.1 kB / 405.7 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.4416, allocations: 8 kB / 405.8 MB, free: 17.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001386/0.443, allocations: 27.92 kB / 405.8 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.654e-05/0.4431, allocations: 16 kB / 405.8 MB, free: 17.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00254/0.4456, allocations: 0.923 MB / 406.7 MB, free: 16.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000905/0.4466, allocations: 272.4 kB / 407 MB, free: 16.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003025/0.4496, allocations: 0.7825 MB / 407.8 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/0.4497, allocations: 4 kB / 407.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.4497, allocations: 0 / 407.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4497, allocations: 3.984 kB / 407.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.4534, allocations: 1.461 MB / 409.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.595e-05/0.4535, allocations: 0 / 409.2 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.4547, allocations: 103.8 kB / 409.3 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006237/0.4553, allocations: 88.73 kB / 409.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-05/0.4554, allocations: 15.98 kB / 409.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008524/0.4563, allocations: 0.6343 MB / 410.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4563, allocations: 3.938 kB / 410.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00353/0.4598, allocations: 1.079 MB / 411.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001802/0.4617, allocations: 0.4936 MB / 411.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005326/0.4623, allocations: 12.12 kB / 411.7 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.4635, allocations: 23.98 kB / 411.7 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.4637, allocations: 36.27 kB / 411.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/0.4638, allocations: 20 kB / 411.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.007569/0.4714, allocations: 3.977 MB / 415.7 MB, free: 7.164 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.4714, allocations: 0 / 415.7 MB, free: 7.164 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001318/0.4727, allocations: 208 kB / 415.9 MB, free: 6.961 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00387/0.4766, allocations: 1.998 MB / 417.9 MB, free: 4.945 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001214/0.4779, allocations: 388.9 kB / 418.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.4779, allocations: 0 / 418.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006894/0.4786, allocations: 215.4 kB / 418.5 MB, free: 4.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.4802, allocations: 179.3 kB / 418.7 MB, free: 4.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07956/0.5598, allocations: 21.02 MB / 439.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002971/0.5628, allocations: 1.865 MB / 441.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/0.5651, allocations: 0.9367 MB / 442.5 MB, free: 10.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.322e-06/0.5651, allocations: 0 / 442.5 MB, free: 10.95 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.571/4.136, allocations: 59.83 MB / 0.4906 GB, free: 97.72 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat