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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.002139/0.002139, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009002/0.0009002, allocations: 82.72 kB / 262.4 MB, free: 1.621 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.677e-05/1.692e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09377, allocations: 47.58 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3657/0.4596, allocations: 89.55 MB / 452.7 MB, free: 6.148 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.4599, allocations: 81.08 kB / 452.8 MB, free: 6.105 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04692/0.5068, allocations: 15.33 MB / 468.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.5069, allocations: 0 / 468.1 MB, free: 9.574 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.188e-05/0.507, allocations: 16 kB / 468.1 MB, free: 9.559 MB / 346.7 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.001597/0.5086, allocations: 0.8611 MB / 469 MB, free: 8.695 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.5086, allocations: 12.03 kB / 469 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.5088, allocations: 75.06 kB / 469.1 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008238/0.5096, allocations: 0.4883 MB / 469.6 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.283e-05/0.5097, allocations: 55 kB / 469.6 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.5099, allocations: 43.38 kB / 469.7 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007734/0.5107, allocations: 447.3 kB / 470.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009398/0.5116, allocations: 0.4921 MB / 470.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.5117, allocations: 0 / 470.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.81e-05/0.5117, allocations: 0 / 470.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.5118, allocations: 16 kB / 470.6 MB, free: 7.438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003492/0.5153, allocations: 2.223 MB / 472.8 MB, free: 5.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006985/0.516, allocations: 409.7 kB / 473.2 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003445/0.5164, allocations: 233.8 kB / 473.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.214e-05/0.5164, allocations: 4 kB / 473.5 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.5165, allocations: 45.38 kB / 473.5 MB, free: 5.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 5.049e-06/0.5165, allocations: 0 / 473.5 MB, free: 5.199 MB / 346.7 MB Notification: Performance of matching and sorting (n=61): time 0.008872/0.5253, allocations: 2.543 MB / 476.1 MB, free: 3.086 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.5254, allocations: 85.66 kB / 476.1 MB, free: 2.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006244/0.5261, allocations: 432.5 kB / 476.6 MB, free: 2.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.77e-05/0.5261, allocations: 25.7 kB / 476.6 MB, free: 2.641 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.5263, allocations: 318.7 kB / 476.9 MB, free: 2.406 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.5265, allocations: 206.4 kB / 477.1 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.5266, allocations: 0 / 477.1 MB, free: 2.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.5267, allocations: 364.5 kB / 477.5 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003727/0.5271, allocations: 209.9 kB / 477.7 MB, free: 1.773 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003885/0.5275, allocations: 299.1 kB / 478 MB, free: 1.562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.5279, allocations: 249.8 kB / 478.2 MB, free: 1.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.5279, allocations: 3.953 kB / 478.2 MB, free: 1.418 MB / 346.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.006643/0.5346, allocations: 1.72 MB / 479.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.5346, allocations: 8 kB / 479.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.5346, allocations: 0 / 479.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006173/0.5408, allocations: 1.158 MB / 481.1 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/0.5413, allocations: 95.09 kB / 481.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01248/0.5538, allocations: 5.654 MB / 486.8 MB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000775/0.5546, allocations: 32.08 kB / 486.9 MB, free: 9.352 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.225e-05/0.5547, allocations: 23.98 kB / 486.9 MB, free: 9.328 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.transformer.core.port_p.V_m:DUMMY_DER(flow=false fixed = false ) "Magnetic potential at the port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 30} Notification: Performance of prepare postOptimizeDAE: time 0.000271/0.555, allocations: 120.8 kB / 487 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002659/0.5577, allocations: 0.8894 MB / 487.9 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.5578, allocations: 59.33 kB / 488 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001405/0.5592, allocations: 0.7048 MB / 488.7 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.5592, allocations: 8 kB / 488.7 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.5592, allocations: 0 / 488.7 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.5593, allocations: 3.984 kB / 488.7 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003425/0.5627, allocations: 1.688 MB / 490.4 MB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/0.5627, allocations: 3.984 kB / 490.4 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005769/0.5633, allocations: 115.9 kB / 490.5 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/0.565, allocations: 336.4 kB / 490.8 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/0.5651, allocations: 4 kB / 490.8 MB, free: 5.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004459/0.5696, allocations: 2.736 MB / 493.6 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.5696, allocations: 3.938 kB / 493.6 MB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002609/0.5722, allocations: 1.216 MB / 494.8 MB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003956/0.5727, allocations: 208.3 kB / 495 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-05/0.5728, allocations: 0 / 495 MB, free: 1.004 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006005/0.5734, allocations: 35.97 kB / 495 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001687/0.5736, allocations: 60.47 kB / 495.1 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.353e-05/0.5736, allocations: 19.98 kB / 495.1 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006093/0.5742, allocations: 343 kB / 495.4 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5743, allocations: 0 / 495.4 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001129/0.5754, allocations: 196.1 kB / 495.6 MB, free: 372 kB / 362.7 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.Phi,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete 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.002978/0.5784, allocations: 1.884 MB / 497.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.58, allocations: 0.7603 MB / 498.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5801, allocations: 0 / 498.3 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007328/0.5808, allocations: 476.1 kB / 498.7 MB, free: 13.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006383/0.5815, allocations: 46.06 kB / 498.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00313/0.5846, allocations: 1.174 MB / 499.9 MB, free: 11.94 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.5852, allocations: 0.9236 MB / 0.4891 GB, free: 10.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003115/0.5855, allocations: 56.55 kB / 0.4892 GB, free: 10.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003385/0.5859, allocations: 227.6 kB / 0.4894 GB, free: 10.71 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5859, allocations: 0 / 0.4894 GB, free: 10.71 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05615/0.642, allocations: 15.77 MB / 0.5048 GB, free: 10.93 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002914/0.6424, allocations: 192.3 kB / 0.505 GB, free: 10.72 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.417/3.059, allocations: 3.938 kB / 0.505 GB, free: 10.72 MB / 394.7 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) 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