Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",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.001144/0.001144, allocations: 90.44 kB / 16.3 MB, free: 5.656 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.001412/0.001412, allocations: 184.8 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 241.1 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002689/0.0002689, allocations: 9.344 kB / 300.8 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1112, allocations: 50.4 MB / 351.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004312/0.1156, allocations: 3.511 MB / 354.7 MB, free: 172 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002332/0.118, allocations: 1.533 MB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002421/0.1182, allocations: 7.938 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002257/0.1185, allocations: 91.36 kB / 356.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006629/0.1191, allocations: 346.9 kB / 356.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.1194, allocations: 151.7 kB / 356.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006346/0.1201, allocations: 0.5975 MB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000278/0.1204, allocations: 170.1 kB / 357.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004298/0.1208, allocations: 310.9 kB / 357.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004248/0.1212, allocations: 362.5 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.306e-05/0.1213, allocations: 44 kB / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003389/0.1217, allocations: 159.9 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.1218, allocations: 139.5 kB / 358.6 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1219, allocations: 157.3 kB / 358.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007626/0.1227, allocations: 0.8844 MB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1227, allocations: 0 / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1227, allocations: 0 / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.1228, allocations: 4 kB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002045/0.1248, allocations: 0.9779 MB / 360.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1249, allocations: 11.97 kB / 360.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.125, allocations: 106.5 kB / 360.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.1251, allocations: 75.16 kB / 360.8 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006774/0.1258, allocations: 494 kB / 361.3 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-05/0.1259, allocations: 74.95 kB / 361.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001772/0.1261, allocations: 71.94 kB / 361.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1271, allocations: 0.602 MB / 362.1 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.1272, allocations: 4 kB / 362.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.334e-05/0.1272, allocations: 20 kB / 362.1 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1272, allocations: 15.98 kB / 362.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.1283, allocations: 0.536 MB / 362.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.1316, allocations: 2.334 MB / 365 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009184/0.1325, allocations: 494.5 kB / 365.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.1325, allocations: 4 kB / 365.4 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.1326, allocations: 42.56 kB / 365.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 4.378e-06/0.1326, allocations: 0 / 365.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.0124/0.145, allocations: 3.694 MB / 369.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.1451, allocations: 85.67 kB / 369.3 MB, free: 1.246 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006958/0.1458, allocations: 0.537 MB / 369.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.093e-05/0.1458, allocations: 33.7 kB / 369.8 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.146, allocations: 312.3 kB / 370.1 MB, free: 356 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.1462, allocations: 208.9 kB / 370.3 MB, free: 144 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.1462, allocations: 11.94 kB / 370.4 MB, free: 132 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1965/0.3427, allocations: 371.3 kB / 370.7 MB, free: 23.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009705/0.3437, allocations: 252.3 kB / 371 MB, free: 23.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.3445, allocations: 356.6 kB / 371.3 MB, free: 23.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006558/0.3451, allocations: 291.6 kB / 371.6 MB, free: 23.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3451, allocations: 1.531 kB / 371.6 MB, free: 23.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001758/0.3469, allocations: 0.7547 MB / 372.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.3469, allocations: 14.52 kB / 372.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.347, allocations: 2.062 kB / 372.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001957/0.3472, allocations: 38.75 kB / 372.4 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000859/0.348, allocations: 172.6 kB / 372.6 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008825/0.3489, allocations: 1.334 MB / 373.9 MB, free: 22.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/0.3496, allocations: 41.41 kB / 374 MB, free: 22.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.081e-05/0.3496, allocations: 26.73 kB / 374 MB, free: 22.12 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.35, allocations: 203.6 kB / 374.2 MB, free: 22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3501, allocations: 58.78 kB / 374.2 MB, free: 22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.3521, allocations: 0.8702 MB / 375.1 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3521, allocations: 6.719 kB / 375.1 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3521, allocations: 0 / 375.1 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.3522, allocations: 5.312 kB / 375.1 MB, free: 21.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003568/0.3557, allocations: 1.887 MB / 377 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.3557, allocations: 0 / 377 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005268/0.3563, allocations: 114.9 kB / 377.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002473/0.3588, allocations: 0.4926 MB / 377.6 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.911e-05/0.3588, allocations: 17.36 kB / 377.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004593/0.3634, allocations: 3.027 MB / 380.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3634, allocations: 0.7031 kB / 380.7 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002918/0.3664, allocations: 1.422 MB / 382.1 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002924/0.3667, allocations: 209.8 kB / 382.3 MB, free: 18.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.77e-05/0.3668, allocations: 16 kB / 382.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005896/0.3674, allocations: 50.09 kB / 382.3 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.3675, allocations: 49.73 kB / 382.4 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.3676, allocations: 22.84 kB / 382.4 MB, free: 17.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004966/0.3681, allocations: 384.2 kB / 382.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3681, allocations: 0 / 382.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000796/0.3689, allocations: 184.8 kB / 383 MB, free: 17.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003257/0.3722, allocations: 2.085 MB / 385.1 MB, free: 16.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.3738, allocations: 0.7467 MB / 385.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.3738, allocations: 1.406 kB / 385.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009507/0.3748, allocations: 0.5352 MB / 386.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000612/0.3754, allocations: 80.7 kB / 386.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.383, allocations: 5.838 MB / 392.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3834, allocations: 0.9186 MB / 393.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003462/0.3838, allocations: 75.34 kB / 393.2 MB, free: 11.24 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.3841, allocations: 239.6 kB / 393.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3841, allocations: 0 / 393.5 MB, free: 11.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02649/0.4106, allocations: 14.86 MB / 408.3 MB, free: 15.08 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.4108, allocations: 259.7 kB / 408.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.022/2.433, allocations: 0 / 408.6 MB, free: 14.75 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat