Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0008864/0.0008866, allocations: 97.67 kB / 17.01 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008699/0.0008699, allocations: 196.7 kB / 17.91 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003385, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1399, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00457/0.1445, allocations: 3.781 MB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.1475, allocations: 1.54 MB / 363.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003461/0.1478, allocations: 11.94 kB / 363.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.1482, allocations: 95.3 kB / 363.7 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008423/0.149, allocations: 282.2 kB / 364 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004195/0.1495, allocations: 159.7 kB / 364.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009599/0.1504, allocations: 0.8536 MB / 365 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003175/0.1508, allocations: 186 kB / 365.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004821/0.1512, allocations: 310.8 kB / 365.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000464/0.1517, allocations: 358.5 kB / 365.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.051e-05/0.1518, allocations: 44 kB / 365.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003578/0.1522, allocations: 163.9 kB / 366.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.1523, allocations: 135.4 kB / 366.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.1525, allocations: 161.3 kB / 366.4 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.1536, allocations: 0.8883 MB / 367.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1536, allocations: 0 / 367.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1536, allocations: 0 / 367.2 MB, free: 5.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.1536, allocations: 0 / 367.2 MB, free: 5.004 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.002194/0.1558, allocations: 0.9962 MB / 368.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.1559, allocations: 8.031 kB / 368.3 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.156, allocations: 102.5 kB / 368.4 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002441/0.1563, allocations: 87.14 kB / 368.4 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007042/0.157, allocations: 0.4979 MB / 368.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.205e-05/0.1571, allocations: 75 kB / 369 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.1573, allocations: 63.98 kB / 369.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001233/0.1585, allocations: 0.6058 MB / 369.7 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1585, allocations: 0 / 369.7 MB, free: 2.449 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.369e-05/0.1586, allocations: 20 kB / 369.7 MB, free: 2.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.892e-05/0.1586, allocations: 19.98 kB / 369.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.1598, allocations: 0.536 MB / 370.2 MB, free: 1.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.23/0.3899, allocations: 2.312 MB / 372.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.391, allocations: 485.6 kB / 373 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006038/0.3917, allocations: 269 kB / 373.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.3917, allocations: 6.969 kB / 373.3 MB, free: 18.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3918, allocations: 40.05 kB / 373.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 3.056e-06/0.3918, allocations: 4.469 kB / 373.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01291/0.4047, allocations: 3.685 MB / 377 MB, free: 17.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/0.4048, allocations: 84.53 kB / 377.1 MB, free: 17.74 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007404/0.4055, allocations: 0.5453 MB / 377.7 MB, free: 17.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.79e-05/0.4056, allocations: 36.89 kB / 377.7 MB, free: 17.44 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.4058, allocations: 308.8 kB / 378 MB, free: 17.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001502/0.4059, allocations: 210.9 kB / 378.2 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.611e-05/0.406, allocations: 10.62 kB / 378.2 MB, free: 17.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.4061, allocations: 365.2 kB / 378.6 MB, free: 16.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005459/0.4066, allocations: 258 kB / 378.8 MB, free: 16.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006265/0.4073, allocations: 351.5 kB / 379.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00059/0.4079, allocations: 295.8 kB / 379.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.4079, allocations: 0.8125 kB / 379.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001552/0.4094, allocations: 0.762 MB / 380.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.4095, allocations: 5.781 kB / 380.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.4095, allocations: 3.5 kB / 380.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001934/0.4097, allocations: 34.97 kB / 380.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007949/0.4105, allocations: 171 kB / 380.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/0.4115, allocations: 1.331 MB / 381.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006331/0.4122, allocations: 44.05 kB / 381.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.703e-05/0.4122, allocations: 23.53 kB / 381.8 MB, free: 14.54 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.0003427/0.4126, allocations: 207.3 kB / 382 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.4127, allocations: 59.41 kB / 382.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.4147, allocations: 0.8646 MB / 383 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4148, allocations: 6.875 kB / 383 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.4148, allocations: 0 / 383 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.4148, allocations: 4.469 kB / 383 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/0.4187, allocations: 1.893 MB / 384.9 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4187, allocations: 1.125 kB / 384.9 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.4192, allocations: 116.9 kB / 385 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002388/0.4216, allocations: 0.4935 MB / 385.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.048e-05/0.4217, allocations: 17.81 kB / 385.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004569/0.4263, allocations: 2.939 MB / 388.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.4263, allocations: 4.953 kB / 388.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.4294, allocations: 1.406 MB / 389.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000394/0.4298, allocations: 211.5 kB / 390 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.145e-05/0.4299, allocations: 11.88 kB / 390 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005627/0.4304, allocations: 53.36 kB / 390.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.4306, allocations: 55.12 kB / 390.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.933e-05/0.4307, allocations: 19.34 kB / 390.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005656/0.4313, allocations: 383.8 kB / 390.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4313, allocations: 0 / 390.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008617/0.4321, allocations: 187.5 kB / 390.7 MB, free: 9.652 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.003199/0.4353, allocations: 2 MB / 392.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.437, allocations: 0.7502 MB / 393.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.437, allocations: 1.312 kB / 393.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009508/0.4379, allocations: 0.5334 MB / 394 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008757/0.4388, allocations: 87.28 kB / 394.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007154/0.446, allocations: 4.352 MB / 398.5 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.4464, allocations: 0.9019 MB / 399.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003769/0.4468, allocations: 67.72 kB / 399.4 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003496/0.4471, allocations: 241.1 kB / 399.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4472, allocations: 0 / 399.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04182/0.489, allocations: 14.9 MB / 414.6 MB, free: 5.715 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003064/0.4893, allocations: 266.1 kB / 414.8 MB, free: 5.355 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.218/2.707, allocations: 0 / 414.8 MB, free: 5.355 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat