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: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002156/0.002156, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 74.67 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.65e-05/3.674e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 47.57 MB / 369.1 MB, free: 2.188 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5761/0.6785, allocations: 89.99 MB / 459.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0006493/0.6793, allocations: 78.27 kB / 459.2 MB, free: 3.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1923/0.8716, allocations: 15.53 MB / 474.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.441e-06/0.8717, allocations: 0 / 474.7 MB, free: 5.516 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000194/0.8719, allocations: 19.98 kB / 474.7 MB, free: 5.496 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.006974/0.879, allocations: 0.8464 MB / 475.6 MB, free: 4.602 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001043/0.8791, allocations: 8.031 kB / 475.6 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008321/0.88, allocations: 87.05 kB / 475.6 MB, free: 4.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003411/0.8834, allocations: 498 kB / 476.1 MB, free: 3.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003279/0.8838, allocations: 67.02 kB / 476.2 MB, free: 3.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008038/0.8847, allocations: 67.98 kB / 476.3 MB, free: 3.844 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004446/0.8892, allocations: 0.5708 MB / 476.8 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.9e-05/0.8893, allocations: 0 / 476.8 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.8896, allocations: 20 kB / 476.9 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.659e-05/0.8897, allocations: 12 kB / 476.9 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.8934, allocations: 481.1 kB / 477.3 MB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/0.9073, allocations: 2.338 MB / 479.7 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003589/0.9109, allocations: 430.1 kB / 480.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.9126, allocations: 247 kB / 480.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.9128, allocations: 8.062 kB / 480.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/0.9129, allocations: 42.56 kB / 480.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.576e-05/0.913, allocations: 0 / 480.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.03487/0.9479, allocations: 3.018 MB / 483.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.227e-05/0.948, allocations: 81.67 kB / 483.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001185/0.9492, allocations: 495.8 kB / 484 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001758/0.9494, allocations: 37.64 kB / 484 MB, free: 11.85 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002941/0.9497, allocations: 342.9 kB / 484.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003023/0.95, allocations: 216.8 kB / 484.6 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/0.9501, allocations: 16 kB / 484.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.9503, allocations: 338.8 kB / 484.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000708/0.951, allocations: 225.5 kB / 485.1 MB, free: 10.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008042/0.9518, allocations: 308.9 kB / 485.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007694/0.9526, allocations: 263.2 kB / 485.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.313e-06/0.9526, allocations: 4 kB / 485.7 MB, free: 10.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.01294/0.9656, allocations: 1.756 MB / 487.4 MB, free: 8.355 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.34e-05/0.9657, allocations: 8 kB / 487.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.9657, allocations: 0 / 487.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0121/0.9778, allocations: 1.168 MB / 488.6 MB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008572/0.9787, allocations: 87.89 kB / 488.7 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02253/1.001, allocations: 5.767 MB / 494.5 MB, free: 1.172 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/1.003, allocations: 48.05 kB / 494.5 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.913e-05/1.003, allocations: 23.98 kB / 494.5 MB, free: 1.102 MB / 362.7 MB 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.0002582/1.003, allocations: 128.9 kB / 494.7 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/1.003, allocations: 63.25 kB / 494.7 MB, free: 0.9062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002482/1.006, allocations: 0.7749 MB / 495.5 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/1.006, allocations: 11.95 kB / 495.5 MB, free: 112 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/1.006, allocations: 0 / 495.5 MB, free: 112 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/1.006, allocations: 3.984 kB / 495.5 MB, free: 108 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005895/1.012, allocations: 1.82 MB / 497.3 MB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/1.012, allocations: 7.938 kB / 497.3 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/1.013, allocations: 111.9 kB / 497.5 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002999/1.016, allocations: 341.8 kB / 497.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001322/1.016, allocations: 16 kB / 497.8 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007382/1.023, allocations: 2.811 MB / 0.4889 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.024, allocations: 0 / 0.4889 GB, free: 10.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004252/1.028, allocations: 1.279 MB / 0.4901 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005987/1.028, allocations: 208.4 kB / 0.4903 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/1.029, allocations: 16 kB / 0.4903 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/1.03, allocations: 47.91 kB / 0.4904 GB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/1.03, allocations: 52.48 kB / 0.4904 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.98e-05/1.03, allocations: 20 kB / 0.4905 GB, free: 9.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008086/1.031, allocations: 381.5 kB / 0.4908 GB, free: 8.777 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.031, allocations: 0 / 0.4908 GB, free: 8.777 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001381/1.032, allocations: 224 kB / 0.491 GB, free: 8.559 MB / 378.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.0004944/1.033, allocations: 163.1 kB / 0.4912 GB, free: 8.387 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002493/1.035, allocations: 0.8143 MB / 0.492 GB, free: 7.562 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/1.035, allocations: 0 / 0.492 GB, free: 7.562 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/1.037, allocations: 485.5 kB / 0.4924 GB, free: 7.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009046/1.038, allocations: 86.48 kB / 0.4925 GB, free: 6.984 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/1.041, allocations: 1.144 MB / 0.4936 GB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006646/1.042, allocations: 0.9238 MB / 0.4945 GB, free: 4.855 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003739/1.043, allocations: 47.42 kB / 0.4946 GB, free: 4.809 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/1.043, allocations: 0 / 0.4946 GB, free: 4.809 MB / 378.7 MB Notification: Performance of Templates: time 0.02644/1.069, allocations: 11.22 MB / 0.5055 GB, free: 9.578 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable transformer.winding1.i in file Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat. Warning: Get data of variable transformer.winding1.i from file Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat failed! Error: Could not read variable transformer.winding2.i in file Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat. Warning: Get data of variable transformer.winding2.i from file Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat failed! " Variables in the reference:time,transformer.core.B,transformer.core.MagRel,transformer.core.Hstat,transformer.winding1.i,transformer.winding2.i Variables in the result:SineVoltage.V,SineVoltage.freqHz,SineVoltage.i,SineVoltage.n.i,SineVoltage.n.v,SineVoltage.offset,SineVoltage.p.i,SineVoltage.p.v,SineVoltage.phase,SineVoltage.signalSource.amplitude,SineVoltage.signalSource.freqHz,SineVoltage.signalSource.offset,SineVoltage.signalSource.phase,SineVoltage.signalSource.startTime,SineVoltage.signalSource.y,SineVoltage.startTime,SineVoltage.v,el_ground1.p.i,el_ground1.p.v,el_ground2.p.i,el_ground2.p.v,resistor1.LossPower,resistor1.R,resistor1.R_actual,resistor1.T,resistor1.T_heatPort,resistor1.T_ref,resistor1.alpha,resistor1.i,resistor1.n.i,resistor1.n.v,resistor1.p.i,resistor1.p.v,resistor1.v,resistor2.LossPower,resistor2.R,resistor2.R_actual,resistor2.T,resistor2.T_heatPort,resistor2.T_ref,resistor2.alpha,resistor2.i,resistor2.n.i,resistor2.n.v,resistor2.p.i,resistor2.p.v,resistor2.v,time,transformer.A_l1,transformer.A_l2,transformer.B,transformer.EddyCurrents,transformer.H,transformer.HFixed,transformer.HStart,transformer.Heddy,transformer.Hstat,transformer.I1Fixed,transformer.I1Start,transformer.L1,transformer.L2,transformer.L_l1,transformer.L_l2,transformer.LossPower,transformer.LossPowerEddy,transformer.LossPowerStat,transformer.LossPowerWinding,transformer.MagRelFixed,transformer.MagRelStart,transformer.N1,transformer.N2,transformer.R1,transformer.R2,transformer.T,transformer.T_heatPort,transformer.a,transformer.alpha1,transformer.alpha2,transformer.b,transformer.core.A,transformer.core.B,transformer.core.H,transformer.core.Heddy,transformer.core.Hstat,transformer.core.LossPower,transformer.core.LossPowerEddy,transformer.core.LossPowerStat,transformer.core.MagRel,transformer.core.Phi,transformer.core.T,transformer.core.T_heatPort,transformer.core.V,transformer.core.V_m,transformer.core.asc,transformer.core.d,der(transformer.core.B),der(transformer.core.Hstat),der(transformer.core.MagRel),der(transformer.core.Phi),der(transformer.core.V_m),transformer.core.derHstat,transformer.core.l,transformer.core.mat.Hc,transformer.core.mat.Hsat,transformer.core.mat.K,transformer.core.mat.M,transformer.core.mat.p1,transformer.core.mat.p2,transformer.core.mat.q,transformer.core.mat.r,transformer.core.mat.sigma,transformer.core.port_n.Phi,transformer.core.port_n.V_m,der(transformer.core.port_n.V_m),transformer.core.port_p.Phi,transformer.core.port_p.V_m,der(transformer.core.port_p.V_m),transformer.core.sigma,transformer.d1,transformer.d2,transformer.i1,transformer.i2,transformer.l1,transformer.l2,transformer.mat.Hc,transformer.mat.Hsat,transformer.mat.K,transformer.mat.M,transformer.mat.p1,transformer.mat.p2,transformer.mat.q,transformer.mat.r,transformer.mat.sigma,transformer.mu_rel1,transformer.mu_rel2,transformer.n1.i,transformer.n1.v,transformer.n2.i,transformer.n2.v,transformer.p1.i,transformer.p1.v,transformer.p2.i,transformer.p2.v,transformer.rho1,transformer.rho2,transformer.sigma,transformer.t,transformer.tempSource.T,transformer.tempSource.port.Q_flow,transformer.tempSource.port.T,transformer.v1,transformer.v2