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.0008506/0.0008504, allocations: 97.05 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000969/0.0009691, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.7 MB / 246.8 MB, free: 11.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003779/0.0003782, allocations: 4.188 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1304, allocations: 51.53 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.004052/0.1345, allocations: 3.993 MB / 363.2 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002489/0.137, allocations: 1.641 MB / 364.9 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002651/0.1373, allocations: 11.94 kB / 364.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.1376, allocations: 99.28 kB / 365 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006637/0.1383, allocations: 310.4 kB / 365.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.1387, allocations: 207.8 kB / 365.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007262/0.1394, allocations: 0.9198 MB / 366.4 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.1397, allocations: 210.2 kB / 366.6 MB, free: 5.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003645/0.1401, allocations: 318.7 kB / 366.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.1404, allocations: 370.3 kB / 367.3 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.44e-05/0.1405, allocations: 40 kB / 367.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000317/0.1408, allocations: 171.9 kB / 367.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.141, allocations: 143.3 kB / 367.6 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002844/0.1413, allocations: 379.8 kB / 368 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008541/0.1421, allocations: 1.09 MB / 369.1 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.1421, allocations: 7.984 kB / 369.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1421, allocations: 0 / 369.1 MB, free: 3.363 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.1422, allocations: 4 kB / 369.1 MB, free: 3.359 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.002077/0.1442, allocations: 0.9741 MB / 370.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1443, allocations: 12.03 kB / 370.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002309/0.1445, allocations: 95.98 kB / 370.2 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007111/0.1452, allocations: 0.4991 MB / 370.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.59e-05/0.1453, allocations: 75.58 kB / 370.8 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.1455, allocations: 72.39 kB / 370.8 MB, free: 1.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.1467, allocations: 0.6097 MB / 371.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.1467, allocations: 0 / 371.5 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.179e-05/0.1468, allocations: 28 kB / 371.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.1468, allocations: 12 kB / 371.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00112/0.1479, allocations: 0.5438 MB / 372 MB, free: 336 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1788/0.3268, allocations: 2.315 MB / 374.4 MB, free: 18.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.3279, allocations: 494.3 kB / 374.8 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/0.3285, allocations: 270.3 kB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.3285, allocations: 9.281 kB / 375.1 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.3286, allocations: 37.75 kB / 375.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.776e-06/0.3286, allocations: 0 / 375.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.0132/0.3418, allocations: 3.703 MB / 378.8 MB, free: 16.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.3419, allocations: 84.16 kB / 378.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008038/0.3427, allocations: 0.5338 MB / 379.5 MB, free: 16.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.108e-05/0.3427, allocations: 37.39 kB / 379.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.3429, allocations: 314.6 kB / 379.8 MB, free: 16.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.3431, allocations: 212 kB / 380 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.595e-05/0.3432, allocations: 57.73 kB / 380.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3433, allocations: 374.5 kB / 380.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005687/0.3439, allocations: 251.7 kB / 380.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005996/0.3445, allocations: 362.7 kB / 381 MB, free: 15.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.3456, allocations: 0.6221 MB / 381.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3456, allocations: 0 / 381.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001511/0.3472, allocations: 0.7637 MB / 382.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3472, allocations: 6.359 kB / 382.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3472, allocations: 3.031 kB / 382.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001604/0.3474, allocations: 30.17 kB / 382.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008252/0.3482, allocations: 179 kB / 382.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008583/0.3491, allocations: 1.33 MB / 384 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.3496, allocations: 43.34 kB / 384 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.983e-05/0.3497, allocations: 26.97 kB / 384 MB, free: 13.22 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.0002361/0.3499, allocations: 206.8 kB / 384.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.3501, allocations: 67.78 kB / 384.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001805/0.3519, allocations: 0.8562 MB / 385.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.3519, allocations: 7.594 kB / 385.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3519, allocations: 5.031 kB / 385.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.3519, allocations: 3.891 kB / 385.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003708/0.3556, allocations: 1.906 MB / 387.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.3556, allocations: 0.875 kB / 387.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005143/0.3562, allocations: 109.9 kB / 387.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002499/0.3587, allocations: 0.4981 MB / 387.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.442e-05/0.3587, allocations: 17.53 kB / 387.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00457/0.3633, allocations: 2.95 MB / 390.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3633, allocations: 1.188 kB / 390.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002813/0.3661, allocations: 1.423 MB / 392.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/0.3664, allocations: 208.1 kB / 392.3 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.243e-05/0.3665, allocations: 12.7 kB / 392.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005994/0.3671, allocations: 48.23 kB / 392.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.3672, allocations: 50.17 kB / 392.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.113e-05/0.3673, allocations: 20.66 kB / 392.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004497/0.3678, allocations: 393.4 kB / 392.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3678, allocations: 0 / 392.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007252/0.3685, allocations: 184.8 kB / 393 MB, free: 8.312 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.0002643/0.3688, allocations: 153.2 kB / 393.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.3702, allocations: 0.7554 MB / 393.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3702, allocations: 0 / 393.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008541/0.3711, allocations: 0.5326 MB / 394.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007219/0.3718, allocations: 94.03 kB / 394.5 MB, free: 7.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.3745, allocations: 1.862 MB / 396.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3748, allocations: 0.9111 MB / 397.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003257/0.3752, allocations: 67.34 kB / 397.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000176/0.3754, allocations: 52.72 kB / 397.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3754, allocations: 0 / 397.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of Templates: time 0.01515/0.3905, allocations: 9.575 MB / 407 MB, free: 12.98 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/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