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: 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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.001269, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 60.94 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1023, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.007021/0.1094, allocations: 4.383 MB / 363.3 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003679/0.1131, allocations: 1.648 MB / 364.9 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006666/0.1138, allocations: 8 kB / 364.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005389/0.1144, allocations: 126.8 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001391/0.1158, allocations: 361.6 kB / 365.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007491/0.1166, allocations: 247.6 kB / 365.7 MB, free: 6.543 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00146/0.1181, allocations: 0.986 MB / 366.7 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/0.1185, allocations: 241.3 kB / 366.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007026/0.1192, allocations: 374.8 kB / 367.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007083/0.1199, allocations: 426.2 kB / 367.7 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001978/0.1201, allocations: 96 kB / 367.8 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004206/0.1206, allocations: 223.9 kB / 368 MB, free: 4.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.1207, allocations: 199.3 kB / 368.2 MB, free: 4.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000374/0.1211, allocations: 418.1 kB / 368.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.1222, allocations: 1.168 MB / 369.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1222, allocations: 0 / 369.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1222, allocations: 0 / 369.8 MB, free: 2.441 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.1223, allocations: 4 kB / 369.8 MB, free: 2.438 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.00226/0.1245, allocations: 1.095 MB / 370.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1246, allocations: 8.031 kB / 370.9 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002596/0.1248, allocations: 95.98 kB / 371 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007884/0.1256, allocations: 0.5106 MB / 371.5 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.514e-05/0.1257, allocations: 75.52 kB / 371.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.1259, allocations: 72.42 kB / 371.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1684/0.2943, allocations: 0.6019 MB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.272e-05/0.2944, allocations: 0.625 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.2945, allocations: 22.66 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.2945, allocations: 14.53 kB / 372.2 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.2958, allocations: 0.5288 MB / 372.8 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003654/0.2995, allocations: 2.29 MB / 375.1 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009818/0.3005, allocations: 475.9 kB / 375.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005532/0.3011, allocations: 267.5 kB / 375.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.3011, allocations: 8.859 kB / 375.8 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.364e-05/0.3011, allocations: 41.42 kB / 375.8 MB, free: 18.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.354e-06/0.3011, allocations: 0.6875 kB / 375.8 MB, free: 18.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01286/0.314, allocations: 3.544 MB / 379.4 MB, free: 17.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.3141, allocations: 85.45 kB / 379.5 MB, free: 16.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007565/0.3148, allocations: 0.5409 MB / 380 MB, free: 16.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.3149, allocations: 36.3 kB / 380 MB, free: 16.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.3151, allocations: 313.9 kB / 380.4 MB, free: 16.4 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001321/0.3152, allocations: 212.4 kB / 380.6 MB, free: 16.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.3154, allocations: 116.5 kB / 380.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.485e-05/0.3155, allocations: 365.1 kB / 381 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004991/0.316, allocations: 242.1 kB / 381.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006014/0.3166, allocations: 357.2 kB / 381.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.3178, allocations: 0.5998 MB / 382.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3178, allocations: 0 / 382.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001509/0.3193, allocations: 0.741 MB / 383 MB, free: 14.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.3194, allocations: 6.172 kB / 383 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3194, allocations: 3.219 kB / 383 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.3196, allocations: 31.17 kB / 383 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000804/0.3204, allocations: 170.6 kB / 383.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008388/0.3212, allocations: 1.426 MB / 384.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000713/0.3219, allocations: 37.69 kB / 384.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.664e-05/0.322, allocations: 24 kB / 384.6 MB, free: 13.39 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002926/0.3223, allocations: 211.2 kB / 384.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.3224, allocations: 61.11 kB / 384.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.3242, allocations: 0.8381 MB / 385.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.3242, allocations: 12.47 kB / 385.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.3243, allocations: 1.375 kB / 385.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3243, allocations: 3.797 kB / 385.8 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003729/0.328, allocations: 1.855 MB / 387.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.328, allocations: 1.344 kB / 387.6 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000535/0.3286, allocations: 108.6 kB / 387.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002315/0.3309, allocations: 478.2 kB / 388.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.184e-05/0.331, allocations: 13.39 kB / 388.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004502/0.3355, allocations: 3.141 MB / 391.4 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.3355, allocations: 6.375 kB / 391.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/0.3385, allocations: 1.371 MB / 392.7 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003455/0.3389, allocations: 222 kB / 392.9 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.474e-05/0.3389, allocations: 12.22 kB / 393 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/0.3395, allocations: 39.91 kB / 393 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.3397, allocations: 46.22 kB / 393 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.316e-05/0.3397, allocations: 20.36 kB / 393.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004639/0.3402, allocations: 392 kB / 393.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3402, allocations: 0 / 393.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009204/0.3411, allocations: 184 kB / 393.6 MB, free: 8.148 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003195/0.3415, allocations: 150.8 kB / 393.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.343, allocations: 0.7361 MB / 394.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.343, allocations: 0 / 394.5 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008744/0.3439, allocations: 0.5192 MB / 395 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007209/0.3446, allocations: 99.41 kB / 395.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002983/0.3476, allocations: 1.462 MB / 396.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003659/0.348, allocations: 0.9048 MB / 397.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003134/0.3483, allocations: 81.03 kB / 397.6 MB, free: 5.492 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.3485, allocations: 47.23 kB / 397.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3485, allocations: 0 / 397.6 MB, free: 5.48 MB / 302.1 MB Notification: Performance of Templates: time 0.0153/0.3638, allocations: 10.26 MB / 407.9 MB, free: 12.76 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (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 & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches