Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_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_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",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.0009377/0.0009376, allocations: 97.19 kB / 16.94 MB, free: 6.441 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.001038/0.001038, allocations: 187.5 kB / 17.83 MB, free: 6.008 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.266/1.266, 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.0004237/0.0004238, allocations: 16 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07847/0.0789, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003083/0.08202, allocations: 2.721 MB / 331.2 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.08394, allocations: 1.311 MB / 332.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.08411, allocations: 11.94 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002548/0.08666, allocations: 2.105 MB / 334.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000334/0.08701, allocations: 167.5 kB / 334.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.08758, allocations: 239.5 kB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001421/0.08901, allocations: 1.467 MB / 336.4 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.08922, allocations: 106.7 kB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003132/0.08954, allocations: 283.2 kB / 336.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.08988, allocations: 307 kB / 337.1 MB, free: 11.26 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.102e-05/0.08995, allocations: 24 kB / 337.1 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.09008, allocations: 36 kB / 337.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005732/0.09066, allocations: 0.8337 MB / 338 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002731/0.09094, allocations: 380.3 kB / 338.4 MB, free: 9.984 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.09249, allocations: 2.09 MB / 340.5 MB, free: 7.891 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.0925, allocations: 3.938 kB / 340.5 MB, free: 7.887 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09251, allocations: 0 / 340.5 MB, free: 7.887 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.668e-05/0.09253, allocations: 0 / 340.5 MB, free: 7.887 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003263/0.0958, allocations: 2.426 MB / 342.9 MB, free: 5.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.09585, allocations: 12.03 kB / 342.9 MB, free: 5.387 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.329e-05/0.09594, allocations: 78.53 kB / 343 MB, free: 5.301 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/0.09622, allocations: 280.3 kB / 343.3 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002329/0.09855, allocations: 1.685 MB / 345 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.746e-05/0.09863, allocations: 58.7 kB / 345 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001627/0.0988, allocations: 47.92 kB / 345.1 MB, free: 3.172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006306/0.09944, allocations: 387 kB / 345.4 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.09947, allocations: 0 / 345.4 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.09951, allocations: 16 kB / 345.5 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.09953, allocations: 12 kB / 345.5 MB, free: 2.754 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006457/0.1002, allocations: 331.7 kB / 345.8 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003814/0.104, allocations: 2.915 MB / 348.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005627/0.1046, allocations: 316.9 kB / 349 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.1046, allocations: 11.97 kB / 349 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.1047, allocations: 42.52 kB / 349.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.603e-06/0.1047, allocations: 0 / 349.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004262/0.1089, allocations: 2.378 MB / 351.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.109, allocations: 97.47 kB / 351.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/0.1146, allocations: 5.442 MB / 357 MB, free: 7.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.122e-05/0.1146, allocations: 33.64 kB / 357 MB, free: 6.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00101/0.1157, allocations: 1.203 MB / 358.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.1158, allocations: 173.5 kB / 358.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.1158, allocations: 8 kB / 358.4 MB, free: 5.594 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.116, allocations: 322 kB / 358.7 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003294/0.1163, allocations: 145 kB / 358.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003523/0.1167, allocations: 225.6 kB / 359.1 MB, free: 4.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000347/0.117, allocations: 168.8 kB / 359.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.117, allocations: 0 / 359.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001091/0.1181, allocations: 0.68 MB / 359.9 MB, free: 4.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1182, allocations: 8 kB / 359.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1182, allocations: 0 / 359.9 MB, free: 4.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.1182, allocations: 4 kB / 359.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000509/0.1187, allocations: 131.8 kB / 360.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.318e-05/0.1187, allocations: 4.25 kB / 360.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003905/0.1191, allocations: 23.95 kB / 360.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.1192, allocations: 19.98 kB / 360.1 MB, free: 3.84 MB / 302.1 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.0009819/0.1202, allocations: 0.9153 MB / 361 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000279/0.1204, allocations: 268.5 kB / 361.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001256/0.1217, allocations: 0.7824 MB / 362.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.1217, allocations: 4 kB / 362.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1217, allocations: 0 / 362.1 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.1217, allocations: 3.984 kB / 362.1 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.1233, allocations: 1.465 MB / 363.5 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.1233, allocations: 4 kB / 363.5 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004217/0.1237, allocations: 99.83 kB / 363.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002919/0.124, allocations: 84.8 kB / 363.7 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.124, allocations: 8 kB / 363.7 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005098/0.1246, allocations: 0.6304 MB / 364.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1246, allocations: 8.094 kB / 364.4 MB, free: 15.47 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.1261, allocations: 1.086 MB / 365.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008275/0.1269, allocations: 0.4935 MB / 365.9 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.1271, allocations: 12 kB / 366 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004326/0.1275, allocations: 23.98 kB / 366 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.1276, allocations: 20.41 kB / 366 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.1276, allocations: 15.98 kB / 366 MB, free: 13.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.004234/0.1318, allocations: 3.989 MB / 370 MB, free: 9.789 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1319, allocations: 3.938 kB / 370 MB, free: 9.785 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006396/0.1325, allocations: 200 kB / 370.2 MB, free: 9.59 MB / 318.1 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.002564/0.1351, allocations: 2.003 MB / 372.2 MB, free: 7.559 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007241/0.1358, allocations: 377 kB / 372.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1358, allocations: 0 / 372.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004139/0.1362, allocations: 218.8 kB / 372.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.137, allocations: 183.3 kB / 373 MB, free: 6.797 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1743/0.3113, allocations: 20.83 MB / 393.8 MB, free: 44.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001277/0.3126, allocations: 1.866 MB / 395.7 MB, free: 44.05 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004954/0.3131, allocations: 272.7 kB / 395.9 MB, free: 44.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007591/0.3139, allocations: 0.9253 MB / 396.9 MB, free: 43.26 MB / 318.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3139, allocations: 0 / 396.9 MB, free: 43.26 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04955/0.3635, allocations: 39.62 MB / 436.5 MB, free: 5.855 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.3637, allocations: 291 kB / 436.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.52/2.884, allocations: 3.938 kB / 436.8 MB, free: 5.492 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat does not exist to compare? outputFormat=mat