Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002309/0.002309, allocations: 178 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.88/2.88, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 85.72 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.894e-05/2.899e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3243, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.469, allocations: 89.33 MB / 451.8 MB, free: 12.94 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.4694, allocations: 87.94 kB / 451.9 MB, free: 12.86 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07414/0.5436, allocations: 15.32 MB / 467.2 MB, free: 13.52 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5436, allocations: 4 kB / 467.2 MB, free: 13.52 MB / 363.1 MB Notification: Performance of Transformations before backend: time 4.847e-05/0.5437, allocations: 12 kB / 467.2 MB, free: 13.51 MB / 363.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.002616/0.5463, allocations: 0.8667 MB / 468.1 MB, free: 12.6 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.307e-05/0.5464, allocations: 8.031 kB / 468.1 MB, free: 12.59 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002967/0.5467, allocations: 79.06 kB / 468.1 MB, free: 12.51 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.548, allocations: 0.4924 MB / 468.6 MB, free: 11.98 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.5481, allocations: 51.02 kB / 468.7 MB, free: 11.92 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/0.5484, allocations: 39.98 kB / 468.7 MB, free: 11.88 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001364/0.5498, allocations: 446.5 kB / 469.2 MB, free: 11.45 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.5512, allocations: 0.4901 MB / 469.6 MB, free: 10.94 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.563e-05/0.5512, allocations: 3 kB / 469.6 MB, free: 10.94 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.328e-05/0.5513, allocations: 0 / 469.6 MB, free: 10.94 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.5513, allocations: 16 kB / 469.7 MB, free: 10.92 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005635/0.557, allocations: 2.229 MB / 471.9 MB, free: 8.602 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.558, allocations: 413.8 kB / 472.3 MB, free: 8.172 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005943/0.5587, allocations: 223.1 kB / 472.5 MB, free: 7.949 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.353e-05/0.5587, allocations: 4 kB / 472.5 MB, free: 7.945 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.5588, allocations: 42.56 kB / 472.6 MB, free: 7.895 MB / 363.1 MB Notification: Performance of pre-optimization done (n=45): time 3.236e-06/0.5588, allocations: 0 / 472.6 MB, free: 7.895 MB / 363.1 MB Notification: Performance of matching and sorting (n=61): time 0.01578/0.5746, allocations: 2.545 MB / 475.1 MB, free: 5.297 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.654e-05/0.5747, allocations: 89.67 kB / 475.2 MB, free: 5.188 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.5757, allocations: 437.3 kB / 475.6 MB, free: 4.754 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.5759, allocations: 25.7 kB / 475.6 MB, free: 4.723 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002846/0.5762, allocations: 346.7 kB / 476 MB, free: 4.383 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002677/0.5765, allocations: 204.9 kB / 476.2 MB, free: 4.18 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.5765, allocations: 0 / 476.2 MB, free: 4.18 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.5767, allocations: 334.8 kB / 476.5 MB, free: 3.844 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/0.5773, allocations: 213.5 kB / 476.7 MB, free: 3.633 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006745/0.578, allocations: 299.4 kB / 477 MB, free: 3.312 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006976/0.5787, allocations: 250 kB / 477.3 MB, free: 3.07 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.5788, allocations: 3.953 kB / 477.3 MB, free: 3.066 MB / 363.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.0127/0.5915, allocations: 1.686 MB / 478.9 MB, free: 1.367 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.5915, allocations: 4 kB / 478.9 MB, free: 1.363 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.5916, allocations: 7.984 kB / 479 MB, free: 1.355 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/0.6035, allocations: 1.156 MB / 480.1 MB, free: 200 kB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000844/0.6044, allocations: 95.84 kB / 480.2 MB, free: 104 kB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02141/0.6259, allocations: 5.645 MB / 485.9 MB, free: 10.32 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/0.627, allocations: 43.81 kB / 485.9 MB, free: 10.28 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.6271, allocations: 23.98 kB / 485.9 MB, free: 10.26 MB / 379.1 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.0002959/0.6274, allocations: 124.6 kB / 486 MB, free: 10.13 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004667/0.6321, allocations: 0.8855 MB / 486.9 MB, free: 9.234 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002603/0.6324, allocations: 51.34 kB / 487 MB, free: 9.184 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/0.6346, allocations: 0.7087 MB / 487.7 MB, free: 8.473 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.6346, allocations: 11.98 kB / 487.7 MB, free: 8.461 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.6346, allocations: 0 / 487.7 MB, free: 8.461 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.6346, allocations: 3.984 kB / 487.7 MB, free: 8.457 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005401/0.64, allocations: 1.688 MB / 489.4 MB, free: 6.715 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.6401, allocations: 0 / 489.4 MB, free: 6.715 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.6412, allocations: 111.9 kB / 489.5 MB, free: 6.605 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002836/0.644, allocations: 336.4 kB / 489.8 MB, free: 6.273 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.033e-05/0.6442, allocations: 11.98 kB / 489.8 MB, free: 6.262 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006769/0.6509, allocations: 2.736 MB / 492.6 MB, free: 3.406 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/0.651, allocations: 4.062 kB / 492.6 MB, free: 3.402 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003791/0.6548, allocations: 1.216 MB / 493.8 MB, free: 2.164 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005207/0.6554, allocations: 200.4 kB / 494 MB, free: 1.949 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.6555, allocations: 4 kB / 494 MB, free: 1.945 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.6566, allocations: 39.97 kB / 494 MB, free: 1.906 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.6568, allocations: 56.38 kB / 494.1 MB, free: 1.848 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-05/0.6569, allocations: 19.98 kB / 494.1 MB, free: 1.828 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0006372/0.6575, allocations: 339 kB / 494.4 MB, free: 1.5 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6575, allocations: 0 / 494.4 MB, free: 1.5 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001227/0.6588, allocations: 196.1 kB / 494.6 MB, free: 1.309 MB / 379.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.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.004461/0.6632, allocations: 1.882 MB / 496.5 MB, free: 15.4 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0021/0.6654, allocations: 0.7606 MB / 497.3 MB, free: 14.62 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6654, allocations: 0 / 497.3 MB, free: 14.62 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.6665, allocations: 483.4 kB / 497.7 MB, free: 14.14 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008307/0.6674, allocations: 50.58 kB / 497.8 MB, free: 14.09 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004111/0.6715, allocations: 1.207 MB / 499 MB, free: 12.84 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006803/0.6722, allocations: 0.9236 MB / 499.9 MB, free: 11.89 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005904/0.6728, allocations: 231.3 kB / 0.4884 GB, free: 11.66 MB / 395.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6728, allocations: 0 / 0.4884 GB, free: 11.66 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.03/3.703, allocations: 13.72 MB / 0.5018 GB, free: 120.5 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat does not exist to compare? outputFormat=mat