Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_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.0009601/0.0009601, allocations: 95.19 kB / 16.93 MB, free: 5.984 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.0009578/0.0009578, allocations: 175 kB / 17.82 MB, free: 5.652 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.257/1.257, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005172/0.0005174, allocations: 11.98 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08453/0.08506, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003956/0.08906, allocations: 3.47 MB / 331.9 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002428/0.09153, allocations: 1.557 MB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002998/0.09185, allocations: 15.94 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002621/0.09213, allocations: 91.34 kB / 333.6 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007596/0.09289, allocations: 342.9 kB / 333.9 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.09326, allocations: 143.8 kB / 334 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006782/0.09395, allocations: 0.598 MB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.09423, allocations: 186 kB / 334.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.09459, allocations: 302.9 kB / 335.1 MB, free: 13.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004023/0.095, allocations: 362.5 kB / 335.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.557e-05/0.09508, allocations: 51.98 kB / 335.5 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003129/0.0954, allocations: 159.8 kB / 335.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.09554, allocations: 139.5 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000118/0.09566, allocations: 161.3 kB / 336 MB, free: 12.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007173/0.09638, allocations: 0.8766 MB / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.0964, allocations: 0 / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.09641, allocations: 0 / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.09642, allocations: 0 / 336.8 MB, free: 11.53 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.00201/0.09844, allocations: 0.9895 MB / 337.8 MB, free: 10.49 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.09849, allocations: 8.031 kB / 337.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001173/0.09861, allocations: 102.5 kB / 337.9 MB, free: 10.37 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.09874, allocations: 75.16 kB / 338 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006467/0.0994, allocations: 0.4902 MB / 338.5 MB, free: 9.766 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.821e-05/0.09951, allocations: 78.95 kB / 338.6 MB, free: 9.684 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.0997, allocations: 67.98 kB / 338.6 MB, free: 9.617 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001007/0.1007, allocations: 0.5941 MB / 339.2 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1007, allocations: 0 / 339.2 MB, free: 9.004 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.1008, allocations: 28 kB / 339.3 MB, free: 8.977 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.584e-05/0.1008, allocations: 16 kB / 339.3 MB, free: 8.961 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.1019, allocations: 0.5321 MB / 339.8 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003189/0.1051, allocations: 2.322 MB / 342.1 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009095/0.106, allocations: 493.6 kB / 342.6 MB, free: 5.492 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.1061, allocations: 4.234 kB / 342.6 MB, free: 5.488 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1061, allocations: 38.56 kB / 342.7 MB, free: 5.441 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 3.116e-06/0.1061, allocations: 0 / 342.7 MB, free: 5.441 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01255/0.1186, allocations: 3.692 MB / 346.4 MB, free: 1.656 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.765e-05/0.1187, allocations: 81.67 kB / 346.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006757/0.1194, allocations: 0.5448 MB / 347 MB, free: 1.004 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.238e-05/0.1195, allocations: 33.7 kB / 347 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.1197, allocations: 316.3 kB / 347.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.1199, allocations: 205 kB / 347.5 MB, free: 456 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.1199, allocations: 15.94 kB / 347.5 MB, free: 440 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1201, allocations: 366.8 kB / 347.9 MB, free: 64 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005664/0.1206, allocations: 257.3 kB / 348.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005804/0.1212, allocations: 352.4 kB / 348.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005893/0.1218, allocations: 294.1 kB / 348.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.1218, allocations: 0 / 348.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001516/0.1234, allocations: 0.7608 MB / 349.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1234, allocations: 7.953 kB / 349.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1234, allocations: 4 kB / 349.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001859/0.1236, allocations: 36.89 kB / 349.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007855/0.1244, allocations: 167.8 kB / 349.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.1255, allocations: 1.343 MB / 351.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/0.1261, allocations: 43.92 kB / 351.1 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.526e-05/0.1262, allocations: 28.05 kB / 351.2 MB, free: 12.61 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.0002893/0.1265, allocations: 201.7 kB / 351.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.1266, allocations: 59.3 kB / 351.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.1284, allocations: 0.8686 MB / 352.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.1284, allocations: 8 kB / 352.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1284, allocations: 4 kB / 352.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.1284, allocations: 3.984 kB / 352.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003709/0.1321, allocations: 1.889 MB / 354.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.902e-06/0.1322, allocations: 0 / 354.2 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.1327, allocations: 115.9 kB / 354.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002347/0.1351, allocations: 0.4963 MB / 354.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-05/0.1351, allocations: 15.98 kB / 354.8 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004899/0.14, allocations: 3.026 MB / 357.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.1401, allocations: 4.062 kB / 357.8 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002949/0.143, allocations: 1.419 MB / 359.3 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/0.1433, allocations: 208.4 kB / 359.5 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.1435, allocations: 12 kB / 359.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/0.144, allocations: 47.97 kB / 359.5 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.1442, allocations: 52.44 kB / 359.6 MB, free: 3.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.1442, allocations: 16 kB / 359.6 MB, free: 3.918 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004924/0.1447, allocations: 386.9 kB / 360 MB, free: 3.543 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1447, allocations: 0 / 360 MB, free: 3.543 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007357/0.1455, allocations: 191.9 kB / 360.2 MB, free: 3.355 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.00329/0.1488, allocations: 2.076 MB / 362.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001437/0.1502, allocations: 0.7521 MB / 363 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1503, allocations: 0 / 363 MB, free: 492 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008901/0.1512, allocations: 0.5295 MB / 363.5 MB, free: 15.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000584/0.1517, allocations: 89.97 kB / 363.6 MB, free: 15.84 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007393/0.1592, allocations: 5.835 MB / 369.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004483/0.1596, allocations: 0.9124 MB / 370.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000337/0.16, allocations: 72.81 kB / 370.4 MB, free: 8.898 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.1603, allocations: 239.3 kB / 370.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1603, allocations: 0 / 370.7 MB, free: 8.664 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1749/0.3352, allocations: 14.86 MB / 385.5 MB, free: 51.7 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.3355, allocations: 259.9 kB / 385.8 MB, free: 51.37 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/2.234, allocations: 3.906 kB / 385.8 MB, free: 51.37 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat