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.001107/0.001107, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001184/0.001185, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 8.887 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.83 kB / 306.9 MB, free: 0.7695 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09148, allocations: 50.53 MB / 357.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005491/0.09702, allocations: 4.398 MB / 361.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.09983, allocations: 1.664 MB / 363.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005003/0.1004, allocations: 8 kB / 363.5 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004555/0.1009, allocations: 99.23 kB / 363.6 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009197/0.1018, allocations: 306.5 kB / 363.9 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.1023, allocations: 211.8 kB / 364.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009171/0.1032, allocations: 0.9236 MB / 365 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003018/0.1035, allocations: 210.2 kB / 365.2 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005028/0.104, allocations: 330.7 kB / 365.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004883/0.1045, allocations: 398.2 kB / 366 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.1046, allocations: 52 kB / 366 MB, free: 5.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003879/0.105, allocations: 171.9 kB / 366.2 MB, free: 5.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.1052, allocations: 147.4 kB / 366.3 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003842/0.1056, allocations: 370 kB / 366.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007763/0.1064, allocations: 0.9195 MB / 367.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1064, allocations: 0 / 367.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1064, allocations: 0 / 367.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.224e-05/0.1064, allocations: 4 kB / 367.6 MB, free: 4.02 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.002702/0.1091, allocations: 1.099 MB / 368.7 MB, free: 2.867 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1092, allocations: 8.031 kB / 368.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003109/0.1095, allocations: 87.98 kB / 368.8 MB, free: 2.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007376/0.1102, allocations: 0.5107 MB / 369.3 MB, free: 2.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.244e-05/0.1103, allocations: 67.58 kB / 369.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.1105, allocations: 76.48 kB / 369.4 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1117, allocations: 0.6019 MB / 370 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1117, allocations: 0 / 370 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.764e-05/0.1118, allocations: 24 kB / 370.1 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.1118, allocations: 12 kB / 370.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.1129, allocations: 0.5282 MB / 370.6 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.161/0.274, allocations: 2.304 MB / 372.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00099/0.275, allocations: 482.9 kB / 373.4 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005575/0.2756, allocations: 271.8 kB / 373.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.2756, allocations: 4.938 kB / 373.7 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.2756, allocations: 38.28 kB / 373.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.916e-06/0.2757, allocations: 6.141 kB / 373.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01301/0.2887, allocations: 3.537 MB / 377.2 MB, free: 17.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.2887, allocations: 84.66 kB / 377.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007812/0.2895, allocations: 0.5377 MB / 377.9 MB, free: 16.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.99e-05/0.2896, allocations: 36.42 kB / 377.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.2898, allocations: 312.2 kB / 378.2 MB, free: 16.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001593/0.2899, allocations: 215.3 kB / 378.4 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/0.2902, allocations: 111.9 kB / 378.5 MB, free: 16.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.2903, allocations: 370.7 kB / 378.9 MB, free: 16.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005798/0.2909, allocations: 242.4 kB / 379.1 MB, free: 16.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006172/0.2915, allocations: 350.4 kB / 379.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.2927, allocations: 0.6023 MB / 380.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2927, allocations: 5.219 kB / 380.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001588/0.2943, allocations: 0.7412 MB / 380.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.2943, allocations: 6 kB / 380.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.2943, allocations: 3.75 kB / 380.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.2945, allocations: 30.67 kB / 380.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008118/0.2953, allocations: 170.6 kB / 381 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008327/0.2962, allocations: 1.331 MB / 382.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006229/0.2968, allocations: 38.59 kB / 382.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/0.2969, allocations: 24.31 kB / 382.4 MB, free: 13.75 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.0002781/0.2972, allocations: 205.1 kB / 382.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001451/0.2973, allocations: 57.03 kB / 382.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.2991, allocations: 0.8532 MB / 383.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.2992, allocations: 10.72 kB / 383.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.2992, allocations: 0 / 383.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2992, allocations: 4.781 kB / 383.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00398/0.3032, allocations: 1.842 MB / 385.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.3032, allocations: 1.219 kB / 385.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005465/0.3037, allocations: 105.3 kB / 385.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002455/0.3062, allocations: 475.5 kB / 385.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.3063, allocations: 14.75 kB / 386 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004771/0.3111, allocations: 2.894 MB / 388.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3111, allocations: 0.7031 kB / 388.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003193/0.3143, allocations: 1.364 MB / 390.2 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003595/0.3147, allocations: 210.9 kB / 390.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.3149, allocations: 16.22 kB / 390.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000665/0.3155, allocations: 44.8 kB / 390.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001745/0.3157, allocations: 49.28 kB / 390.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.417e-05/0.3158, allocations: 18.17 kB / 390.5 MB, free: 9.105 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000549/0.3164, allocations: 394.9 kB / 390.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.3164, allocations: 0 / 390.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008495/0.3172, allocations: 187.8 kB / 391.1 MB, free: 8.898 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.0002937/0.3175, allocations: 157.2 kB / 391.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001491/0.319, allocations: 0.727 MB / 392 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.319, allocations: 1.125 kB / 392 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009162/0.32, allocations: 0.5301 MB / 392.5 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007659/0.3207, allocations: 83.53 kB / 392.6 MB, free: 8.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.3236, allocations: 1.792 MB / 394.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.324, allocations: 0.9015 MB / 395.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/0.3242, allocations: 57.91 kB / 395.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3242, allocations: 0 / 395.4 MB, free: 6.195 MB / 302.1 MB Notification: Performance of Templates: time 0.01476/0.339, allocations: 11.78 MB / 407.1 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 -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