Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 114.5 kB / 17.73 MB, free: 5.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 187 kB / 18.66 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.396/1.396, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 47.92 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.09257, allocations: 46.62 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005265/0.09786, allocations: 4.3 MB / 379.4 MB, free: 256 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1844/0.2823, allocations: 1.62 MB / 381.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003754/0.2827, allocations: 10.34 kB / 381.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003944/0.2832, allocations: 132.6 kB / 381.2 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008734/0.2841, allocations: 365.8 kB / 381.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004812/0.2846, allocations: 230.9 kB / 381.8 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008764/0.2855, allocations: 0.9843 MB / 382.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004397/0.2859, allocations: 248.5 kB / 383 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005829/0.2865, allocations: 367.4 kB / 383.4 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005769/0.2871, allocations: 429.8 kB / 383.8 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.2873, allocations: 95.22 kB / 383.9 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004814/0.2877, allocations: 216.5 kB / 384.1 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001716/0.2879, allocations: 201.4 kB / 384.3 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004151/0.2883, allocations: 420.6 kB / 384.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001604/0.29, allocations: 1.162 MB / 385.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.29, allocations: 0 / 385.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.29, allocations: 0.6562 kB / 385.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.29, allocations: 0 / 385.9 MB, free: 8.148 MB / 318.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.002388/0.2924, allocations: 1.096 MB / 387 MB, free: 7.418 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.2925, allocations: 9.812 kB / 387 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.2926, allocations: 80.12 kB / 387 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008349/0.2935, allocations: 0.5146 MB / 387.6 MB, free: 6.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.19e-05/0.2936, allocations: 70.91 kB / 387.6 MB, free: 6.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/0.2938, allocations: 70.47 kB / 387.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001189/0.295, allocations: 0.6071 MB / 388.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.2951, allocations: 0.9375 kB / 388.3 MB, free: 6.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.286e-05/0.2951, allocations: 21.09 kB / 388.3 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.2951, allocations: 13.84 kB / 388.3 MB, free: 6.613 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.2963, allocations: 0.5229 MB / 388.9 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.2996, allocations: 2.295 MB / 391.2 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.3006, allocations: 476.1 kB / 391.6 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.3012, allocations: 270.1 kB / 391.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.741e-05/0.3012, allocations: 5.5 kB / 391.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.225e-05/0.3013, allocations: 38.12 kB / 391.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.834e-06/0.3013, allocations: 0 / 391.9 MB, free: 4.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01291/0.3142, allocations: 3.554 MB / 395.5 MB, free: 3.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.3143, allocations: 84.17 kB / 395.6 MB, free: 3.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008289/0.3151, allocations: 0.5362 MB / 396.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.981e-05/0.3152, allocations: 36.67 kB / 396.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.3154, allocations: 315.4 kB / 396.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001425/0.3155, allocations: 215.2 kB / 396.7 MB, free: 2.316 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.3157, allocations: 111.4 kB / 396.8 MB, free: 2.258 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.3158, allocations: 370.4 kB / 397.1 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005379/0.3164, allocations: 243.1 kB / 397.4 MB, free: 1.824 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005959/0.317, allocations: 355.4 kB / 397.7 MB, free: 1.621 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3181, allocations: 0.5974 MB / 398.3 MB, free: 1.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.3181, allocations: 1.281 kB / 398.3 MB, free: 1.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001421/0.3195, allocations: 0.7396 MB / 399.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.3195, allocations: 6.875 kB / 399.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.148e-06/0.3196, allocations: 2.75 kB / 399.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001816/0.3197, allocations: 31.34 kB / 399.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008135/0.3206, allocations: 174.6 kB / 399.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009854/0.3216, allocations: 1.43 MB / 400.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006061/0.3222, allocations: 46.2 kB / 400.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.795e-05/0.3222, allocations: 24.08 kB / 400.8 MB, free: 15.46 MB / 334.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.0003225/0.3226, allocations: 203.2 kB / 401 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.3227, allocations: 60.72 kB / 401 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001831/0.3246, allocations: 0.8345 MB / 401.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3246, allocations: 10.34 kB / 401.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.3246, allocations: 6.109 kB / 401.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.3246, allocations: 2.812 kB / 401.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003861/0.3285, allocations: 1.855 MB / 403.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3285, allocations: 0 / 403.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.329, allocations: 109.3 kB / 403.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002278/0.3313, allocations: 472.3 kB / 404.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.787e-05/0.3314, allocations: 13.41 kB / 404.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004995/0.3364, allocations: 3.149 MB / 407.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3364, allocations: 8.047 kB / 407.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003092/0.3395, allocations: 1.362 MB / 408.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003613/0.3399, allocations: 210.4 kB / 409 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.208e-05/0.34, allocations: 15.75 kB / 409 MB, free: 9.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005898/0.3406, allocations: 38.78 kB / 409.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.3407, allocations: 51.23 kB / 409.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.774e-05/0.3408, allocations: 16.38 kB / 409.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005553/0.3414, allocations: 395 kB / 409.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3414, allocations: 1.062 kB / 409.5 MB, free: 9.547 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008518/0.3422, allocations: 190.1 kB / 409.7 MB, free: 9.52 MB / 334.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.0002644/0.3425, allocations: 137.8 kB / 409.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.3439, allocations: 0.7356 MB / 410.6 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3439, allocations: 0 / 410.6 MB, free: 9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008727/0.3448, allocations: 0.5268 MB / 411.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.3455, allocations: 95.09 kB / 411.2 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.3482, allocations: 1.469 MB / 412.7 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004844/0.3487, allocations: 0.903 MB / 413.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000306/0.349, allocations: 72.53 kB / 413.7 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001809/0.3492, allocations: 57.84 kB / 413.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3492, allocations: 0 / 413.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of Templates: time 0.01714/0.3663, allocations: 10.39 MB / 424.1 MB, free: 13.02 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches