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.001057/0.001061, allocations: 96.3 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 207.8 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.2 MB / 245.9 MB, free: 12.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002004/0.0002004, allocations: 8 kB / 306.6 MB, free: 1.668 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09156/0.09177, allocations: 51.48 MB / 358.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004071/0.09588, allocations: 3.521 MB / 361.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002621/0.09854, allocations: 1.56 MB / 363.2 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003293/0.0989, allocations: 11.94 kB / 363.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.09915, allocations: 91.34 kB / 363.3 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007377/0.0999, allocations: 342.9 kB / 363.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000353/0.1003, allocations: 151.7 kB / 363.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007103/0.101, allocations: 0.6019 MB / 364.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.1013, allocations: 178 kB / 364.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.1017, allocations: 310.9 kB / 364.8 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003915/0.1021, allocations: 358.6 kB / 365.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.097e-05/0.1021, allocations: 40 kB / 365.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000316/0.1025, allocations: 167.9 kB / 365.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.1026, allocations: 131.5 kB / 365.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.1027, allocations: 161.3 kB / 365.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007437/0.1035, allocations: 0.8883 MB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.1035, allocations: 0 / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1035, allocations: 0 / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.1035, allocations: 0 / 366.5 MB, free: 5.66 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.002034/0.1055, allocations: 0.9896 MB / 367.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.1056, allocations: 8.031 kB / 367.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002264/0.1058, allocations: 87.16 kB / 367.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006288/0.1064, allocations: 0.494 MB / 368.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.073e-05/0.1065, allocations: 79 kB / 368.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001713/0.1067, allocations: 63.98 kB / 368.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001003/0.1077, allocations: 0.5981 MB / 368.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1078, allocations: 3.938 kB / 368.9 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.51e-05/0.1078, allocations: 24 kB / 368.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1078, allocations: 16 kB / 368.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.1089, allocations: 0.5322 MB / 369.4 MB, free: 2.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003129/0.112, allocations: 2.322 MB / 371.8 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.149/0.2611, allocations: 489 kB / 372.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.2612, allocations: 5.859 kB / 372.2 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.2612, allocations: 45.39 kB / 372.3 MB, free: 19.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.2612, allocations: 3.828 kB / 372.3 MB, free: 19.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.01276/0.274, allocations: 3.683 MB / 376 MB, free: 18.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.274, allocations: 85.16 kB / 376.1 MB, free: 18.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006343/0.2747, allocations: 0.5383 MB / 376.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.2747, allocations: 36.83 kB / 376.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.2749, allocations: 311.3 kB / 376.9 MB, free: 18.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.275, allocations: 214.2 kB / 377.1 MB, free: 18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.39e-05/0.2751, allocations: 10.47 kB / 377.1 MB, free: 18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.669e-05/0.2751, allocations: 369.8 kB / 377.5 MB, free: 17.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005093/0.2757, allocations: 259.2 kB / 377.8 MB, free: 17.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005495/0.2762, allocations: 354.2 kB / 378.1 MB, free: 17.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005578/0.2768, allocations: 288.9 kB / 378.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2768, allocations: 1.469 kB / 378.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001388/0.2782, allocations: 0.7622 MB / 379.2 MB, free: 16.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.2782, allocations: 7.094 kB / 379.2 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.2782, allocations: 2.688 kB / 379.2 MB, free: 16.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/0.2784, allocations: 30.33 kB / 379.2 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007916/0.2792, allocations: 173.3 kB / 379.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000682/0.2799, allocations: 1.345 MB / 380.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005467/0.2804, allocations: 42.97 kB / 380.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.762e-05/0.2805, allocations: 23.83 kB / 380.8 MB, free: 15.49 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 (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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002309/0.2807, allocations: 212.8 kB / 381 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.2808, allocations: 57.06 kB / 381 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001688/0.2825, allocations: 0.8616 MB / 381.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.046e-06/0.2826, allocations: 11.27 kB / 381.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2826, allocations: 0 / 381.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.729e-06/0.2826, allocations: 9.281 kB / 381.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003447/0.286, allocations: 1.886 MB / 383.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.2861, allocations: 1.156 kB / 383.8 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005254/0.2866, allocations: 110.4 kB / 383.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002543/0.2891, allocations: 0.5004 MB / 384.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.806e-05/0.2892, allocations: 16.92 kB / 384.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004583/0.2938, allocations: 3.021 MB / 387.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2938, allocations: 0 / 387.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002871/0.2967, allocations: 1.425 MB / 388.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002722/0.297, allocations: 206.9 kB / 389.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.794e-05/0.2971, allocations: 15.38 kB / 389.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005976/0.2977, allocations: 50.31 kB / 389.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.2978, allocations: 46.47 kB / 389.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.443e-05/0.2979, allocations: 22.72 kB / 389.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004721/0.2983, allocations: 383.7 kB / 389.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2984, allocations: 1.031 kB / 389.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007629/0.2991, allocations: 187.6 kB / 389.8 MB, free: 10.57 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 (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.0002549/0.2994, allocations: 159.1 kB / 389.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001391/0.3008, allocations: 0.748 MB / 390.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3008, allocations: 0 / 390.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000833/0.3016, allocations: 0.5328 MB / 391.2 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004847/0.3021, allocations: 86.81 kB / 391.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3046, allocations: 1.83 MB / 393.1 MB, free: 8.699 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.3049, allocations: 0.9157 MB / 394 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003438/0.3053, allocations: 70.25 kB / 394.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.3054, allocations: 45.7 kB / 394.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3054, allocations: 4 kB / 394.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of Templates: time 0.01295/0.3184, allocations: 9.296 MB / 403.5 MB, free: 0.9336 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches