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.001338/0.001338, allocations: 100.2 kB / 17.58 MB, free: 5.418 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.001406/0.001406, allocations: 191.9 kB / 18.51 MB, free: 4.5 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.364/1.364, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001237/0.001237, allocations: 52.14 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.08341, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00481/0.08827, allocations: 3.342 MB / 330.7 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.09089, allocations: 1.4 MB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004277/0.09134, allocations: 8 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003074/0.09446, allocations: 2.663 MB / 334.8 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006342/0.09511, allocations: 166.7 kB / 335 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007279/0.09586, allocations: 291.4 kB / 335.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001967/0.09783, allocations: 1.79 MB / 337 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002506/0.0981, allocations: 131.5 kB / 337.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004426/0.09855, allocations: 305.1 kB / 337.5 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004677/0.09903, allocations: 334.8 kB / 337.8 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.09918, allocations: 44 kB / 337.8 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.09941, allocations: 68 kB / 337.9 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005691/0.09999, allocations: 0.8452 MB / 338.7 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000955/0.101, allocations: 0.9307 MB / 339.7 MB, free: 8.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002016/0.103, allocations: 2.581 MB / 342.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.103, allocations: 0 / 342.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.103, allocations: 4 kB / 342.3 MB, free: 5.426 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.754e-05/0.1031, allocations: 0 / 342.3 MB, free: 5.426 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.005009/0.1081, allocations: 2.802 MB / 345.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1082, allocations: 11.89 kB / 345.1 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001028/0.1083, allocations: 70.72 kB / 345.1 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004749/0.1088, allocations: 285.3 kB / 345.4 MB, free: 2.188 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002549/0.1113, allocations: 1.812 MB / 347.2 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-05/0.1114, allocations: 66.94 kB / 347.3 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.1116, allocations: 47.98 kB / 347.3 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.1123, allocations: 395 kB / 347.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1124, allocations: 0 / 347.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.474e-05/0.1124, allocations: 16 kB / 347.7 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1124, allocations: 8 kB / 347.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006675/0.1131, allocations: 335.7 kB / 348.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003871/0.117, allocations: 2.907 MB / 351 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005888/0.1176, allocations: 309 kB / 351.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.1179, allocations: 173.6 kB / 351.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.1179, allocations: 4 kB / 351.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.118, allocations: 39.09 kB / 351.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.834e-06/0.118, allocations: 0 / 351.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004407/0.1224, allocations: 2.367 MB / 353.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.1225, allocations: 85.58 kB / 353.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006301/0.1288, allocations: 5.439 MB / 359.4 MB, free: 3.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.359e-05/0.1289, allocations: 29.7 kB / 359.4 MB, free: 3.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001102/0.13, allocations: 1.207 MB / 360.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.1302, allocations: 169.5 kB / 360.8 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.1303, allocations: 82.25 kB / 360.9 MB, free: 2.414 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.1305, allocations: 334 kB / 361.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.1308, allocations: 141 kB / 361.3 MB, free: 1.945 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003708/0.1312, allocations: 225.6 kB / 361.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007091/0.1319, allocations: 384.3 kB / 361.9 MB, free: 1.297 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1319, allocations: 3.938 kB / 361.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001281/0.1332, allocations: 0.68 MB / 362.6 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1332, allocations: 4 kB / 362.6 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1332, allocations: 4.25 kB / 362.6 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.1333, allocations: 8 kB / 362.6 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005334/0.1338, allocations: 119.9 kB / 362.7 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.1338, allocations: 11.88 kB / 362.8 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005724/0.1344, allocations: 16 kB / 362.8 MB, free: 452 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.794e-05/0.1344, allocations: 19.98 kB / 362.8 MB, free: 432 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001281/0.1357, allocations: 0.9154 MB / 363.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004575/0.1362, allocations: 272.4 kB / 364 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00196/0.1382, allocations: 0.7785 MB / 364.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.1382, allocations: 4 kB / 364.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.1382, allocations: 0 / 364.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001049/0.1383, allocations: 7.984 kB / 364.8 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002995/0.1413, allocations: 1.469 MB / 366.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.1414, allocations: 3.938 kB / 366.2 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/0.1419, allocations: 99.88 kB / 366.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000399/0.1423, allocations: 84.8 kB / 366.4 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.582e-05/0.1424, allocations: 12 kB / 366.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007068/0.1431, allocations: 0.6343 MB / 367.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1431, allocations: 0 / 367.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001876/0.145, allocations: 1.065 MB / 368.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.1461, allocations: 489.6 kB / 368.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/0.1465, allocations: 8 kB / 368.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.1471, allocations: 19.98 kB / 368.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.36e-05/0.1472, allocations: 28.39 kB / 368.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.1472, allocations: 12 kB / 368.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00672/0.154, allocations: 3.981 MB / 372.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.154, allocations: 0 / 372.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001065/0.1551, allocations: 204 kB / 372.9 MB, free: 6.223 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003219/0.1583, allocations: 1.926 MB / 374.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.1594, allocations: 409.2 kB / 375.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1594, allocations: 0 / 375.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005035/0.1599, allocations: 214.4 kB / 375.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.1614, allocations: 195.1 kB / 375.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.185/0.3464, allocations: 22.37 MB / 397.9 MB, free: 43.75 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/0.3476, allocations: 1.819 MB / 399.8 MB, free: 42.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005427/0.3482, allocations: 264.5 kB / 400 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008219/0.349, allocations: 0.9328 MB / 401 MB, free: 40.98 MB / 318.1 MB Notification: Performance of SimCode: time 7.72e-07/0.349, allocations: 3.812 kB / 401 MB, free: 40.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05971/0.4087, allocations: 38.07 MB / 439 MB, free: 3.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.02, allocations: 4.953 kB / 439 MB, free: 3.086 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/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)